From 43e31f639a43a58b196cbe29c23a0187bd8fe385 Mon Sep 17 00:00:00 2001 From: "lightclient@protonmail.com" Date: Fri, 6 Aug 2021 18:51:39 +0200 Subject: [PATCH] internal/ethapi/api: return maxFeePerGas for gasPrice for EIP-1559 txs --- internal/ethapi/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 30f6dd06ab67..670beea81902 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1323,7 +1323,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