Skip to content

Commit

Permalink
fix(cognitarium): decrease the store byte size upon deletion
Browse files Browse the repository at this point in the history
Co-authored-by: Arnaud Mimart <[email protected]>
  • Loading branch information
ccamel and amimart authored Sep 5, 2023
1 parent 4d5ee31 commit 74c9461
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/okp4-cognitarium/src/storer/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ impl<'a> StoreEngine<'a> {
let object_hash: Hash = triple.object.as_hash();

self.store.stat.triple_count -= Uint128::one();
self.store.stat.byte_size -= Uint128::from(Self::triple_size(t) as u128);
triples()
.remove(
self.storage,
Expand Down

0 comments on commit 74c9461

Please sign in to comment.