mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 09:51:36 +00:00
core: readability
This commit is contained in:
parent
03d4efd8df
commit
4e46fb1b8d
1 changed files with 1 additions and 1 deletions
|
|
@ -484,7 +484,7 @@ func (st *stateTransition) execute() (*ExecutionResult, error) {
|
|||
|
||||
if rules.IsAmsterdam {
|
||||
// EIP-8037: total intrinsic must fit within the transaction gas limit.
|
||||
if msg.GasLimit < gas.Sum() {
|
||||
if gas.Sum() > msg.GasLimit {
|
||||
return nil, fmt.Errorf("%w: have %d, want %d", ErrIntrinsicGas, msg.GasLimit, gas.Sum())
|
||||
}
|
||||
// EIP-8037: the regular gas consumption (intrinsic or floor) must fit within MaxTxGas.
|
||||
|
|
|
|||
Loading…
Reference in a new issue