Skip to content

Commit

Permalink
[wasm] update
Browse files Browse the repository at this point in the history
  • Loading branch information
iwojima committed Sep 11, 2018
1 parent 9f2a598 commit e6109ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vm/wasm/exec/env_func.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -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
Expand Down

0 comments on commit e6109ec

Please sign in to comment.