Skip to content

Commit 39fe7ec

Browse files
authored
internal/ethapi: return maxFeePerGas for gasPrice for EIP-1559 txs (#23345)
1 parent 6694831 commit 39fe7ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/ethapi/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,7 @@ func newRPCTransaction(tx *types.Transaction, blockHash common.Hash, blockNumber
13231323
price := math.BigMin(new(big.Int).Add(tx.GasTipCap(), baseFee), tx.GasFeeCap())
13241324
result.GasPrice = (*hexutil.Big)(price)
13251325
} else {
1326-
result.GasPrice = nil
1326+
result.GasPrice = (*hexutil.Big)(tx.GasFeeCap())
13271327
}
13281328
}
13291329
return result

0 commit comments

Comments
 (0)