From d9d36e30a86f0fe7d0455823df71d64ee4eeef92 Mon Sep 17 00:00:00 2001 From: devopsbo3 <69951731+devopsbo3@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:27:53 -0600 Subject: [PATCH] Revert "internal/ethapi: correctly calculate effective gas price (#28130)" This reverts commit 664137285fc414398f33355c99b060a1530a9a8b. --- internal/ethapi/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 733e671e0a..c37e716ded 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1520,8 +1520,8 @@ func newRPCTransaction(tx *types.Transaction, blockHash common.Hash, blockNumber func effectiveGasPrice(tx *types.Transaction, baseFee *big.Int) *big.Int { fee := tx.GasTipCap() fee = fee.Add(fee, baseFee) - if tx.GasFeeCapIntCmp(fee) < 0 { - return tx.GasFeeCap() + if tx.GasTipCapIntCmp(fee) < 0 { + return tx.GasTipCap() } return fee }