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();