From 65d96465df28297d6cfa27b034a0ec48c7e1e359 Mon Sep 17 00:00:00 2001 From: Tudor Malene Date: Thu, 1 Aug 2024 09:19:06 +0100 Subject: [PATCH] add dummy fields to keep ethers6 happy (#2003) --- tools/walletextension/rpcapi/blockchain_api.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/walletextension/rpcapi/blockchain_api.go b/tools/walletextension/rpcapi/blockchain_api.go index 57d8ccfbf0..36256559bf 100644 --- a/tools/walletextension/rpcapi/blockchain_api.go +++ b/tools/walletextension/rpcapi/blockchain_api.go @@ -116,6 +116,11 @@ func (api *BlockChainAPI) GetBlockByNumber(ctx context.Context, number rpc.Block // convert to geth header and marshall header := subscription.ConvertBatchHeader(resp) fields := RPCMarshalHeader(header) + + // dummy fields + fields["size"] = hexutil.Uint64(0) + fields["transactions"] = []any{} + addExtraTenFields(fields, resp) return fields, err } @@ -129,6 +134,11 @@ func (api *BlockChainAPI) GetBlockByHash(ctx context.Context, hash gethcommon.Ha // convert to geth header and marshall header := subscription.ConvertBatchHeader(resp) fields := RPCMarshalHeader(header) + + // dummy fields + fields["size"] = hexutil.Uint64(0) + fields["transactions"] = []any{} + addExtraTenFields(fields, resp) return fields, err }