Skip to content

Commit

Permalink
use msg.GasLimit for check
Browse files Browse the repository at this point in the history
  • Loading branch information
s1na committed Jan 28, 2025
1 parent 993e818 commit 39e9622
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,8 @@ func (st *stateTransition) execute() (*ExecutionResult, error) {
if err != nil {
return nil, err
}
if st.gasRemaining < floorDataGas {
return nil, fmt.Errorf("%w: have %d, want %d", ErrFloorDataGas, st.gasRemaining, floorDataGas)
if msg.GasLimit < floorDataGas {
return nil, fmt.Errorf("%w: have %d, want %d", ErrFloorDataGas, msg.GasLimit, floorDataGas)
}
}
if t := st.evm.Config.Tracer; t != nil && t.OnGasChange != nil {
Expand Down

0 comments on commit 39e9622

Please sign in to comment.