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

Method insert

crates/proof/proof/src/boot.rs:531–534  ·  view source on GitHub ↗
(&mut self, key: U256, value: Vec<u8>)

Source from the content-addressed store, hash-verified

529 }
530
531 fn insert(&mut self, key: U256, value: Vec<u8>) {
532 self.remove(key);
533 self.data.push((PreimageKey::new_local(key.to()), value));
534 }
535
536 fn remove(&mut self, key: U256) {
537 let key = PreimageKey::new_local(key.to());

Calls 3

removeMethod · 0.45
pushMethod · 0.45
toMethod · 0.45