fix method: VM.send

This commit is contained in:
waynewyang 2019-10-22 20:37:04 +08:00
parent 855b1fdd6e
commit f99c11e048

View File

@ -385,7 +385,9 @@ func (vm *VM) send(ctx context.Context, msg *types.Message, parent *VMContext,
if msg.Method != 0 {
ret, err := vm.Invoke(toActor, vmctx, msg.Method, msg.Params)
toActor.Head = vmctx.Storage().GetHead()
if !aerrors.IsFatal(err) {
toActor.Head = vmctx.Storage().GetHead()
}
return ret, err, vmctx
}