Skip to content

Commit 4985d83

Browse files
kandrianovfjl
andauthored
ethclient: fix BlockReceipts parameter encoding (#28087)
Co-authored-by: Felix Lange <[email protected]>
1 parent f6f64cc commit 4985d83

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)
114+
err := ec.c.CallContext(ctx, &r, "eth_getBlockReceipts", blockNrOrHash.String())
115115
if err == nil && r == nil {
116116
return nil, ethereum.NotFound
117117
}

0 commit comments

Comments
 (0)