Commit b2496646 authored by 袁兴强's avatar 袁兴强 Committed by vipwzw

reset wasm

parent 2c0fde51
......@@ -114,6 +114,10 @@ func (w *Wasm) Exec_Call(payload *types2.WasmCall, tx *types.Transaction, index
w.tx = tx
w.execAddr = address.ExecAddress(string(types.GetRealExecName(tx.Execer)))
w.ENV = make(map[int]string)
w.localCache = nil
w.kvs = nil
w.receiptLogs = nil
w.customLogs = nil
for i, v := range payload.Env {
w.ENV[i] = v
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment