Skip to content

Commit

Permalink
Merge branch 'oss' of github.com:massalabs/bonsai-trie into oss
Browse files Browse the repository at this point in the history
  • Loading branch information
AurelienFT committed Dec 19, 2023
2 parents bb4a4b5 + c8f63a1 commit fbb139b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ fn main() {
.get(&BitVec::from_vec(vec![1, 2, 2]))
.unwrap();

// Update the `pair2` item and commit.
let pair2 = (
// Insert a new item and commit.
let pair4 = (
vec![1, 2, 3],
Felt252Wrapper::from_hex_be("0x66342762FDD54D033c195fec3ce2568b62052e").unwrap(),
);
bonsai_storage
.insert(&BitVec::from_vec(pair2.0.clone()), &pair2.1)
.insert(&BitVec::from_vec(pair4.0.clone()), &pair4.1)
.unwrap();
bonsai_storage.commit(id_builder.new_id()).unwrap();
}
Expand Down

0 comments on commit fbb139b

Please sign in to comment.