From 1a54eca30e732c49e97eb59e16a065dc8071030a Mon Sep 17 00:00:00 2001 From: Somnath Date: Mon, 11 Mar 2024 13:13:42 +0400 Subject: [PATCH] Fix txpool_content for pending blob tx (#9668) --- 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)