wasm add comment

This commit is contained in:
x
2022-11-03 06:58:58 +00:00
committed by parazyd
parent b4a0b70cbf
commit 48f1a86d58
3 changed files with 2 additions and 1 deletions

View File

@@ -65,3 +65,4 @@ fn process_instruction(ix: &[u8]) -> ContractResult {
Ok(())
}

View File

@@ -36,7 +36,6 @@ fn run_contract() -> Result<()> {
simplelog::TerminalMode::Mixed,
simplelog::ColorChoice::Auto,
)?;
// =============================================================
// Build a ledger state so the runtime has something to work on
// =============================================================

View File

@@ -165,6 +165,7 @@ impl Runtime {
let entrypoint = self.instance.exports.get_function(ENTRYPOINT)?;
debug!(target: "wasm_runtime::run", "Executing wasm");
// We pass 0 to entrypoint() which is the location of the payload data in the memory
let ret = match entrypoint.call(&mut self.store, &[Value::I32(0 as i32)]) {
Ok(retvals) => {
self.print_logs();