Skip to content

Commit 7fced9f

Browse files
yperbasismarshalys
andauthored
fix gas price not right problem (#10456)
Cherry pick PR #10451 into the release branch Co-authored-by: mars <[email protected]>
1 parent 6d4a614 commit 7fced9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

turbo/adapter/ethapi/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (args *CallArgs) ToMessage(globalGasCap uint64, baseFee *uint256.Int) (type
112112
gasFeeCap, gasTipCap = gasPrice, gasPrice
113113
} else {
114114
// User specified 1559 gas fields (or none), use those
115-
gasFeeCap = baseFee
115+
gasFeeCap = uint256.MustFromBig(baseFee.ToBig())
116116
if args.MaxFeePerGas != nil {
117117
overflow := gasFeeCap.SetFromBig(args.MaxFeePerGas.ToInt())
118118
if overflow {

0 commit comments

Comments
 (0)