mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
graphql: fix GasPrice for blob and setcode transactions (#33542)
Adds BlobTxType and SetCodeTxType to GasPrice switch case, aligning with `MaxFeePerGas` and `MaxPriorityFeePerGas` handling. Co-authored-by: m6xwzzz <maskk.weller@gmail.com>
This commit is contained in:
parent
64d22fd7f7
commit
a32851fac9
1 changed files with 1 additions and 1 deletions
|
|
@ -272,7 +272,7 @@ func (t *Transaction) GasPrice(ctx context.Context) hexutil.Big {
|
|||
return hexutil.Big{}
|
||||
}
|
||||
switch tx.Type() {
|
||||
case types.DynamicFeeTxType:
|
||||
case types.DynamicFeeTxType, types.BlobTxType, types.SetCodeTxType:
|
||||
if block != nil {
|
||||
if baseFee, _ := block.BaseFeePerGas(ctx); baseFee != nil {
|
||||
// price = min(gasTipCap + baseFee, gasFeeCap)
|
||||
|
|
|
|||
Loading…
Reference in a new issue