mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
graphql: calculate maxFeePerGas,maxPriorityFeePerGas for blobtx
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
22abf61296
commit
0add9d0175
1 changed files with 2 additions and 2 deletions
|
|
@ -310,7 +310,7 @@ func (t *Transaction) MaxFeePerGas(ctx context.Context) *hexutil.Big {
|
|||
return nil
|
||||
}
|
||||
switch tx.Type() {
|
||||
case types.DynamicFeeTxType:
|
||||
case types.DynamicFeeTxType, types.BlobTxType:
|
||||
return (*hexutil.Big)(tx.GasFeeCap())
|
||||
default:
|
||||
return nil
|
||||
|
|
@ -323,7 +323,7 @@ func (t *Transaction) MaxPriorityFeePerGas(ctx context.Context) *hexutil.Big {
|
|||
return nil
|
||||
}
|
||||
switch tx.Type() {
|
||||
case types.DynamicFeeTxType:
|
||||
case types.DynamicFeeTxType, types.BlobTxType:
|
||||
return (*hexutil.Big)(tx.GasTipCap())
|
||||
default:
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue