Skip to content

Commit

Permalink
internal/ethapi: downgrade log level for gas overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
buddh0 committed Nov 26, 2024
1 parent db357bf commit 030d8fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ethapi/transaction_args.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ func (args *TransactionArgs) CallDefaults(globalGasCap uint64, baseFee *big.Int,
args.Gas = (*hexutil.Uint64)(&gas)
} else {
if globalGasCap > 0 && globalGasCap < uint64(*args.Gas) {
log.Warn("Caller gas above allowance, capping", "requested", args.Gas, "cap", globalGasCap)
log.Debug("Caller gas above allowance, capping", "requested", args.Gas, "cap", globalGasCap)
args.Gas = (*hexutil.Uint64)(&globalGasCap)
}
}
Expand Down

0 comments on commit 030d8fa

Please sign in to comment.