From e6109ec605dfdc82f6dd25f2c7087c10a76a3a4c Mon Sep 17 00:00:00 2001 From: iwojima Date: Tue, 11 Sep 2018 16:56:26 +0800 Subject: [PATCH] [wasm] update --- vm/wasm/exec/env_func.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vm/wasm/exec/env_func.go b/vm/wasm/exec/env_func.go index 4d054e5f..534a2725 100644 --- a/vm/wasm/exec/env_func.go +++ b/vm/wasm/exec/env_func.go @@ -362,6 +362,7 @@ func setBinValue(vm *VM) (bool, error) { return true, nil } +//uint32_t removeBinValue(char* object, uint32_t objLen, char* key, uint32_t keyLen); func removeBinValue(vm *VM) (bool, error) { contractCtx := vm.GetContract() @@ -385,7 +386,7 @@ func removeBinValue(vm *VM) (bool, error) { } log.Infof(string(object), len(object), string(key), len(key)) - value, err := contractCtx.RoleIntf.GetBinValue(string(contract), string(object), string(key)) + value, err := contractCtx.RoleIntf.GetBinValue(string(contractCtx.Trx.Contract), string(object), string(key)) if err != nil { log.Infof("*ERROR* Failed to find data from the chain !!!") vm.ctx = envFunc.envFuncCtx