add check for feecap and premium to vm.checkMessage
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
parent
562a3f482e
commit
c29dd72174
@ -293,8 +293,12 @@ func checkMessage(msg *types.Message) error {
|
|||||||
return xerrors.Errorf("message has negative gas limit")
|
return xerrors.Errorf("message has negative gas limit")
|
||||||
}
|
}
|
||||||
|
|
||||||
if msg.GasPrice == types.EmptyInt {
|
if msg.GasFeeCap == types.EmptyInt {
|
||||||
return xerrors.Errorf("message gas no gas price set")
|
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 {
|
if msg.Value == types.EmptyInt {
|
||||||
|
Loading…
Reference in New Issue
Block a user