mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-08 22:28:12 -05:00
wasm add comment
This commit is contained in:
@@ -65,3 +65,4 @@ fn process_instruction(ix: &[u8]) -> ContractResult {
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
// =============================================================
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user