Revert gas exhausted exit code to SysErrOutOfGas

This commit is contained in:
Travis Person 2020-03-27 00:19:34 +00:00
parent 06cfbf5742
commit 090261f304

View File

@ -297,7 +297,7 @@ func (vm *VM) ApplyMessage(ctx context.Context, cmsg types.ChainMsg) (*ApplyRet,
if msgGasCost > msg.GasLimit {
return &ApplyRet{
MessageReceipt: types.MessageReceipt{
ExitCode: exitcode.SysErrSenderStateInvalid,
ExitCode: exitcode.SysErrOutOfGas,
GasUsed: 0,
},
Penalty: types.BigMul(msg.GasPrice, types.NewInt(uint64(msgGasCost))),