Merge pull request #444 from waynewyang/fix-vm-send

fix method: VM.send
This commit is contained in:
Jakub Sztandera 2019-10-22 21:47:21 +09:00 committed by GitHub
commit 403466e2be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}