Skip to content

Commit

Permalink
fix: default value for Trie[Bytes32, U256] (#797)
Browse files Browse the repository at this point in the history
Closes #780
  • Loading branch information
enitrat authored Feb 13, 2025
1 parent b53dbac commit aee05af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cairo/ethereum/cancun/state.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -1125,8 +1125,8 @@ func build_storage_trie_for_address{
// Get storage trie for address
let (trie_ptr_) = dict_read{dict_ptr=dict_ptr}(address.value);
if (cast(trie_ptr_, felt) == 0) {
let (segment_start) = default_dict_new(0);
tempvar default = new U256Struct(0, 0);
let (segment_start) = default_dict_new(cast(default, felt));
tempvar trie_ptr = new TrieBytes32U256Struct(
secured=bool(1),
default=U256(default),
Expand Down

0 comments on commit aee05af

Please sign in to comment.