File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- scarb nightly-2024-04-20
1+ scarb 2.11.4
Original file line number Diff line number Diff line change @@ -3,3 +3,6 @@ name = "cairo_lib"
33version = " 0.2.0"
44description = " A library for Cairo"
55homepage = " https://github.com/HerodotusDev/cairo-lib"
6+
7+ [dependencies ]
8+ starknet = " 2.11.4"
Original file line number Diff line number Diff line change @@ -77,14 +77,14 @@ impl MPTImpl of MPTTrait {
7777 let current_nibble = (key / key_pow2 ) & 0xf ;
7878 // Unwrap impossible to fail, as we are masking with 0xf, meaning the result is
7979 // always a nibble
80- match MPTTrait :: lazy_rlp_decode_branch_node (
80+ match Self :: lazy_rlp_decode_branch_node (
8181 node , current_nibble . try_into (). unwrap ()
8282 ) {
8383 Result :: Ok (d ) => d ,
8484 Result :: Err (e ) => { break Result :: Err (e ); }
8585 }
8686 } else {
87- match MPTTrait :: decode_rlp_node (node ) {
87+ match Self :: decode_rlp_node (node ) {
8888 Result :: Ok (d ) => d ,
8989 Result :: Err (e ) => { break Result :: Err (e ); }
9090 }
@@ -95,7 +95,7 @@ impl MPTImpl of MPTTrait {
9595 last_word_byte_len = 8 ;
9696 }
9797
98- let hash = MPTTrait :: hash_rlp_node (node , last_word_byte_len );
98+ let hash = Self :: hash_rlp_node (node , last_word_byte_len );
9999 assert (hash == current_hash , ' Element not matching' );
100100
101101 match decoded {
You can’t perform that action at this time.
0 commit comments