Skip to content

Commit

Permalink
internal/ethapi/api: return maxFeePerGas for gasPrice for EIP-1559 txs (
Browse files Browse the repository at this point in the history
  • Loading branch information
gzliudan committed Aug 8, 2024
1 parent 95995b3 commit 158ef25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1922,7 +1922,7 @@ func newRPCTransaction(tx *types.Transaction, blockHash common.Hash, blockNumber
price := math.BigMin(new(big.Int).Add(tx.GasTipCap(), baseFee), tx.GasFeeCap())
result.GasPrice = (*hexutil.Big)(price)
} else {
result.GasPrice = nil
result.GasPrice = (*hexutil.Big)(tx.GasFeeCap())
}
}
return result
Expand Down

0 comments on commit 158ef25

Please sign in to comment.