From aef88d0f08e603f02290a10c5e466da3e02e80cb Mon Sep 17 00:00:00 2001 From: Somnath Banerjee Date: Sun, 10 Mar 2024 22:44:49 +0400 Subject: [PATCH] Fix txpool_content for pending blob tx --- turbo/jsonrpc/eth_api.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/turbo/jsonrpc/eth_api.go b/turbo/jsonrpc/eth_api.go index fff2cdb8609..4499d345325 100644 --- a/turbo/jsonrpc/eth_api.go +++ b/turbo/jsonrpc/eth_api.go @@ -395,6 +395,9 @@ func NewRPCTransaction(tx types.Transaction, blockHash common.Hash, blockNumber To: tx.GetTo(), Value: (*hexutil.Big)(tx.GetValue().ToBig()), } + if t, ok := tx.(*types.BlobTxWrapper); ok { + tx = &t.Tx + } switch t := tx.(type) { case *types.LegacyTx: chainId = types.DeriveChainId(&t.V)