MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / drop

Method drop

fendermint/storage/src/im.rs:136–140  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

134
135impl<'a, S: KVStore, M> Drop for Transaction<'a, S, M> {
136 fn drop(&mut self) {
137 if self.token.is_some() && !thread::panicking() {
138 panic!("Transaction prematurely dropped. Must call `.commit()` or `.rollback()`.");
139 }
140 }
141}
142
143impl<'a, S: KVStore, M> KVRead<S> for Transaction<'a, S, M>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected