mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
Co-authored-by: Andryanau Kanstantsin <andrianov.dev@yandex.by> Co-authored-by: Felix Lange <fjl@twurst.com>
This commit is contained in:
parent
3fcd30adfe
commit
c332874737
1 changed files with 2 additions and 2 deletions
|
|
@ -109,10 +109,10 @@ func (ec *Client) PeerCount(ctx context.Context) (uint64, error) {
|
|||
return uint64(result), err
|
||||
}
|
||||
|
||||
// BlockReceipts returns the receipts of a given block number or hash
|
||||
// BlockReceipts returns the receipts of a given block number or hash.
|
||||
func (ec *Client) BlockReceipts(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) ([]*types.Receipt, error) {
|
||||
var r []*types.Receipt
|
||||
err := ec.c.CallContext(ctx, &r, "eth_getBlockReceipts", blockNrOrHash)
|
||||
err := ec.c.CallContext(ctx, &r, "eth_getBlockReceipts", blockNrOrHash.String())
|
||||
if err == nil && r == nil {
|
||||
return nil, ethereum.ErrNotFound
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue