From 3634747f5ad1f7bec867a51bc9cb30c30ca26b3c Mon Sep 17 00:00:00 2001 From: AurelienFT Date: Tue, 19 Dec 2023 17:02:41 +0100 Subject: [PATCH] Fix example in readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cc3d534..d2877dc 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,8 @@ fn main() { let pair2 = (vec![1, 2, 2], Felt252Wrapper::from_hex_be("0x66342762FD54D033c195fec3ce2568b62052e").unwrap()); let bitvec = BitVec::from_vec(pair2.0.clone()); bonsai_storage.insert(&bitvec, &pair2.1).unwrap(); - bonsai_storage.commit(id_builder.new_id()); + let id1 = id_builder.new_id(); + bonsai_storage.commit(id1); let pair3 = (vec![1, 2, 2], Felt252Wrapper::from_hex_be("0x664D033c195fec3ce2568b62052e").unwrap()); let bitvec = BitVec::from_vec(pair3.0.clone()); bonsai_storage.insert(&bitvec, &pair3.1).unwrap();