Skip to content

Commit

Permalink
fix(cognitarium): fix compilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ccamel committed Sep 6, 2023
1 parent 2b9d953 commit 296c61a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contracts/okp4-cognitarium/src/storer/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,13 @@ impl<'a> StoreEngine<'a> {
}

pub fn delete_triple(&mut self, atom: &rdf::Atom) -> Result<(), ContractError> {
let triple = self.rio_to_triple(atom.into())?;
let triple_model = atom.into();
let triple = self.rio_to_triple(triple_model)?;
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);
self.store.stat.byte_size -= Uint128::from(Self::triple_size(triple_model) as u128);

triples()
.remove(
self.storage,
Expand Down

0 comments on commit 296c61a

Please sign in to comment.