Skip to content

Commit

Permalink
internal/ethapi: return maxFeePerGas for gasPrice for EIP-1559 txs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lightclient committed Aug 10, 2021
1 parent 6694831 commit 39fe7ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ethapi/api.go
Expand Up @@ -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
Expand Down

0 comments on commit 39fe7ec

Please sign in to comment.