Skip to content

Commit

Permalink
ethclient: use bor_getRootHash instead of eth (#967)
Browse files Browse the repository at this point in the history
  • Loading branch information
manav2401 committed Aug 18, 2023
1 parent d0f0cef commit bebd296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethclient/bor_ethclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit bebd296

Please sign in to comment.