Skip to content

Commit 76cda99

Browse files
authored
Revert "ethclient: fix BlockReceipts parameter encoding (ethereum#28087)"
This reverts commit 2e3ba71.
1 parent c6114e6 commit 76cda99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ethclient/ethclient.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ func (ec *Client) PeerCount(ctx context.Context) (uint64, error) {
108108
return uint64(result), err
109109
}
110110

111-
// BlockReceipts returns the receipts of a given block number or hash.
111+
// BlockReceipts returns the receipts of a given block number or hash
112112
func (ec *Client) BlockReceipts(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) ([]*types.Receipt, error) {
113113
var r []*types.Receipt
114-
err := ec.c.CallContext(ctx, &r, "eth_getBlockReceipts", blockNrOrHash.String())
114+
err := ec.c.CallContext(ctx, &r, "eth_getBlockReceipts", blockNrOrHash)
115115
if err == nil && r == nil {
116116
return nil, ethereum.NotFound
117117
}

0 commit comments

Comments
 (0)