未验证 提交 7451fc63 编写于 作者: M Martin Holst Swende 提交者: GitHub

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

上级 12867d15
......@@ -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)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册