Skip to content

Commit

Permalink
Get ethclient compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
marun committed Dec 19, 2023
1 parent 7ae92be commit ae945de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ethclient/ethclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ type Client interface {
BlockByHash(context.Context, common.Hash) (*types.Block, error)
BlockByNumber(context.Context, *big.Int) (*types.Block, error)
BlockNumber(context.Context) (uint64, error)
BlockReceipts(context.Context, rpc.BlockNumberOrHash) ([]*types.Receipt, error)
HeaderByHash(context.Context, common.Hash) (*types.Header, error)
HeaderByNumber(context.Context, *big.Int) (*types.Header, error)
TransactionByHash(context.Context, common.Hash) (tx *types.Transaction, isPending bool, err error)
Expand Down Expand Up @@ -180,7 +181,7 @@ func (ec *client) BlockReceipts(ctx context.Context, blockNrOrHash rpc.BlockNumb
var r []*types.Receipt
err := ec.c.CallContext(ctx, &r, "eth_getBlockReceipts", blockNrOrHash)
if err == nil && r == nil {
return nil, ethereum.NotFound
return nil, interfaces.NotFound
}
return r, err
}
Expand Down

0 comments on commit ae945de

Please sign in to comment.