mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-06-14 09:51:12 +00:00
logger notion
This commit is contained in:
@@ -69,6 +69,8 @@ impl Runtime {
|
|||||||
let val = StorageValue::from_mem(self.memory.get(val_ptr as u32, 32)?)
|
let val = StorageValue::from_mem(self.memory.get(val_ptr as u32, 32)?)
|
||||||
.map_err(|_| interpreter::Error::Trap("Memory access violation".to_owned()))?;
|
.map_err(|_| interpreter::Error::Trap("Memory access violation".to_owned()))?;
|
||||||
|
|
||||||
|
println!("write storage {:?} = {:?}", key, val);
|
||||||
|
|
||||||
self.storage.insert(key, val);
|
self.storage.insert(key, val);
|
||||||
|
|
||||||
Ok(Some(0i32.into()))
|
Ok(Some(0i32.into()))
|
||||||
|
|||||||
Reference in New Issue
Block a user