Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
damip authored Dec 19, 2023
1 parent d94b9fa commit 7141127
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,16 @@ fn main() {
});
});

// Read item `pair2` and assert its value.
bonsai_storage
// Read item `pair1`.
let pair1_val = bonsai_storage
.get(&BitVec::from_vec(vec![1, 2, 2]))
.unwrap();

// Update the `pair2` item and commit.
let pair2 = (
vec![1, 2, 3],
Felt252Wrapper::from_hex_be("0x66342762FDD54D033c195fec3ce2568b62052e").unwrap(),
);

// Update the item and commit.
bonsai_storage
.insert(&BitVec::from_vec(pair2.0.clone()), &pair2.1)
.unwrap();
Expand Down

0 comments on commit 7141127

Please sign in to comment.