Fix bad error message

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-08-04 12:37:22 +02:00
parent 9eea11662c
commit 3058f280d9
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -466,7 +466,7 @@ func (vm *VM) ApplyMessage(ctx context.Context, cmsg types.ChainMsg) (*ApplyRet,
// burn overallocated gas
burn := types.BigMul(types.NewInt(uint64(gasToBurn)), msg.GasPrice)
if err := vm.transferFromGasHolder(builtin.BurntFundsActorAddr, gasHolder, burn); err != nil {
return nil, xerrors.Errorf("failed to refund gas")
return nil, xerrors.Errorf("failed to burn over estimated gas")
}
}