Skip to content

Commit

Permalink
add bool as enum already managed by built-ins
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Oct 8, 2023
1 parent d4291db commit 85a5034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starknet-contract/src/abi/cairo_types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use starknet_core::types::FieldElement;
pub const CAIRO_BASIC_STRUCTS: [&str; 4] = ["Span", "ClassHash", "ContractAddress", "EthAddress"];

/// Same as `CAIRO_BASIC_STRUCTS`, but for enums.
pub const CAIRO_BASIC_ENUMS: [&str; 2] = ["Option", "Result"];
pub const CAIRO_BASIC_ENUMS: [&str; 3] = ["Option", "Result", "bool"];

/// CairoType trait to implement in order to serialize/deserialize
/// a Rust type to/from a CairoType.
Expand Down

0 comments on commit 85a5034

Please sign in to comment.