Skip to content

Commit 8be2e69

Browse files
committed
Update scarb
1 parent 206c5d1 commit 8be2e69

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
scarb nightly-2024-04-20
1+
scarb 2.11.4

Scarb.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ name = "cairo_lib"
33
version = "0.2.0"
44
description = "A library for Cairo"
55
homepage = "https://github.com/HerodotusDev/cairo-lib"
6+
7+
[dependencies]
8+
starknet = "2.11.4"

src/data_structures/eth_mpt.cairo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)