Skip to content

Commit

Permalink
fix gas price not right problem (#10456)
Browse files Browse the repository at this point in the history
Cherry pick PR #10451 into the release branch

Co-authored-by: mars <marshalys@gmail.com>
  • Loading branch information
yperbasis and marshalys committed May 24, 2024
1 parent 6d4a614 commit 7fced9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion turbo/adapter/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (args *CallArgs) ToMessage(globalGasCap uint64, baseFee *uint256.Int) (type
gasFeeCap, gasTipCap = gasPrice, gasPrice
} else {
// User specified 1559 gas fields (or none), use those
gasFeeCap = baseFee
gasFeeCap = uint256.MustFromBig(baseFee.ToBig())
if args.MaxFeePerGas != nil {
overflow := gasFeeCap.SetFromBig(args.MaxFeePerGas.ToInt())
if overflow {
Expand Down

0 comments on commit 7fced9f

Please sign in to comment.