MCPcopy Create free account
hub / github.com/base/base / insert_preimage

Method insert_preimage

crates/proof/host/src/recording.rs:138–141  ·  view source on GitHub ↗
(&self, key: PreimageKey, value: &[u8])

Source from the content-addressed store, hash-verified

136
137 impl WitnessOracle for MockWitness {
138 fn insert_preimage(&self, key: PreimageKey, value: &[u8]) -> WitnessOracleResult<()> {
139 self.preimages.lock().unwrap().push((key, value.to_vec()));
140 Ok(())
141 }
142
143 fn finalize(&self) -> WitnessOracleResult<()> {
144 Ok(())

Callers 2

getMethod · 0.45
get_exactMethod · 0.45

Calls 3

lockMethod · 0.80
to_vecMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected