From bebd2961167e8906a0c5e28d05b4b8207f35d8a7 Mon Sep 17 00:00:00 2001 From: Manav Darji Date: Fri, 18 Aug 2023 14:39:05 +0530 Subject: [PATCH] ethclient: use bor_getRootHash instead of eth (#967) --- ethclient/bor_ethclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethclient/bor_ethclient.go b/ethclient/bor_ethclient.go index b169df5736..b56356592c 100644 --- a/ethclient/bor_ethclient.go +++ b/ethclient/bor_ethclient.go @@ -11,7 +11,7 @@ import ( // GetRootHash returns the merkle root of the block headers func (ec *Client) GetRootHash(ctx context.Context, startBlockNumber uint64, endBlockNumber uint64) (string, error) { var rootHash string - if err := ec.c.CallContext(ctx, &rootHash, "eth_getRootHash", startBlockNumber, endBlockNumber); err != nil { + if err := ec.c.CallContext(ctx, &rootHash, "bor_getRootHash", startBlockNumber, endBlockNumber); err != nil { return "", err }