pub fn storage(&self, key: &[u8]) -> Result<Option<Vec<u8>>, String> {
		let mut read_overlay = S::Overlay::default();
		let eph = Ephemeral {
			storage: &self.storage,
			overlay: &mut read_overlay,
		};

		let map_e = |e| format!("Trie lookup error: {}", e);

		read_trie_value(&eph, &self.root, key).map_err(map_e)
	}
/// Get the value of storage at given key.
Get the value of storage at given key.
Get the value of storage at given key .
pub fn storage(&self, key: &[u8]) -> Result<Option<Vec<u8>>, String> {
		let mut read_overlay = S::Overlay::default();
		let eph = Ephemeral {
			storage: &self.storage,
			overlay: &mut read_overlay,
		};
		let map_e = |e| format!("Trie lookup error: {}", e);
		read_trie_value(&eph, &self.root, key).map_err(map_e)
	}
pub fn storage ( & self , key : & [ u8 ] ) -> Result < Option < Vec < u8 > > , String > { let mut read_overlay = S :: Overlay :: default ( ) ; let eph = Ephemeral { storage : & self . storage , overlay : & mut read_overlay , } ; let map_e = | e | format ! ( " " e ) ; read_trie_value ( & eph , & self . root , key ) . map_err ( map_e ) }
Get the value of storage at given key.
Get the value of storage at given key .
&self
key
&[u8]
&self
key
&[u8]