fix(vm): always specify an ActorErr when ApplyMessage fails.

This case shouldn't actually happen, but we might as well be consistent.
This commit is contained in:
Steven Allen 2021-06-09 13:00:56 -07:00
parent 88af350774
commit 0075abea5e

View File

@ -439,6 +439,8 @@ func (vm *VM) ApplyMessage(ctx context.Context, cmsg types.ChainMsg) (*ApplyRet,
},
GasCosts: &gasOutputs,
Duration: time.Since(start),
ActorErr: aerrors.Newf(exitcode.SysErrSenderInvalid,
"message gas limit does not cover on-chain gas costs"),
}, nil
}