diff --git a/chain/vm/vm.go b/chain/vm/vm.go index 8b2c14316..2d1623cd2 100644 --- a/chain/vm/vm.go +++ b/chain/vm/vm.go @@ -293,8 +293,12 @@ func checkMessage(msg *types.Message) error { return xerrors.Errorf("message has negative gas limit") } - if msg.GasPrice == types.EmptyInt { - return xerrors.Errorf("message gas no gas price set") + if msg.GasFeeCap == types.EmptyInt { + return xerrors.Errorf("message fee cap not set") + } + + if msg.GasPremium == types.EmptyInt { + return xerrors.Errorf("message gas premium not set") } if msg.Value == types.EmptyInt {