From 4e46fb1b8d2cb6105a9030df239fc6e1b83733f3 Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Wed, 8 Apr 2026 11:18:31 +0200 Subject: [PATCH] core: readability --- core/state_transition.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/state_transition.go b/core/state_transition.go index a4f298011f..9c19f17d94 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -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.