From 206eb81148fc73a73cc100dd6b15a9ebdff4ce56 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Tue, 3 Feb 2026 14:16:41 -0500 Subject: [PATCH] fix bal jsonrpc method naming to comply with the spec --- internal/ethapi/api.go | 8 ++++---- internal/web3ext/web3ext.go | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 079a540663..774cd7606f 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1342,15 +1342,15 @@ func AccessList(ctx context.Context, b Backend, blockNrOrHash rpc.BlockNumberOrH } } -// BlockAccessListByBlockNumber returns a block access list for the given block number +// GetBlockAccessListByBlockNumber returns a block access list for the given block number // or nil if one does not exist. -func (api *BlockChainAPI) BlockAccessListByBlockNumber(number rpc.BlockNumber) (interface{}, error) { +func (api *BlockChainAPI) GetBlockAccessListByBlockNumber(number rpc.BlockNumber) (interface{}, error) { return api.b.BlockAccessListByNumberOrHash(rpc.BlockNumberOrHash{BlockNumber: &number}) } -// BlockAccessListByBlockHash returns a block access list for the given block hash +// GetBlockAccessListByBlockHash returns a block access list for the given block hash // or nil if one does not exist. -func (api *BlockChainAPI) BlockAccessListByBlockHash(hash common.Hash) (interface{}, error) { +func (api *BlockChainAPI) GetBlockAccessListByBlockHash(hash common.Hash) (interface{}, error) { return api.b.BlockAccessListByNumberOrHash(rpc.BlockNumberOrHash{BlockHash: &hash}) } diff --git a/internal/web3ext/web3ext.go b/internal/web3ext/web3ext.go index 788a3c5cc2..8cf479d526 100644 --- a/internal/web3ext/web3ext.go +++ b/internal/web3ext/web3ext.go @@ -613,12 +613,12 @@ web3._extend({ }), new web3._extend.Method({ name: 'getBlockAccessListByBlockNumber', - call: 'eth_blockAccessListByBlockNumber', + call: 'eth_getBlockAccessListByBlockNumber', params: 1, }), new web3._extend.Method({ name: 'getBlockAccessListByBlockHash', - call: 'eth_blockAccessListByBlockHash', + call: 'eth_getBlockAccessListByBlockHash', params: 1, }), ],