good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 7451fc63 authored by Martin Holst Swende's avatar Martin Holst Swende Committed by GitHub
Browse files

internal/ethapi: default gas to maxgascap, not max int64 (#21284)

parent 12867d15
Branches
Tags
No related merge requests found
......@@ -749,7 +749,10 @@ func (args *CallArgs) ToMessage(globalGasCap uint64) types.Message {
}
// Set default gas & gas price if none were set
gas := uint64(math.MaxUint64 / 2)
gas := globalGasCap
if gas == 0 {
gas = uint64(math.MaxUint64 / 2)
}
if args.Gas != nil {
gas = uint64(*args.Gas)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment