From ffbb9033ae29000bae07df121f85f44216a77f54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Andr=C3=A9=20Santoni?= Date: Thu, 11 Jan 2018 20:31:55 +0700 Subject: [PATCH] ethclient: rename to TransactionInclusionBlock --- ethclient/ethclient.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go index 09ee0271d6..d55a5c6cca 100644 --- a/ethclient/ethclient.go +++ b/ethclient/ethclient.go @@ -194,8 +194,8 @@ func (ec *Client) TransactionByHash(ctx context.Context, hash common.Hash) (tx * return json.tx, json.BlockNumber == nil, nil } -// BlockNumberByTransactionHash returns block number for the transaction with the given hash. -func (ec *Client) BlockNumberByTransactionHash(ctx context.Context, hash common.Hash) (blockNumber uint64, err error) { +// TransactionInclusionBlock returns block number for the transaction with the given hash. +func (ec *Client) TransactionInclusionBlock(ctx context.Context, hash common.Hash) (blockNumber uint64, err error) { var json *rpcTransaction err = ec.c.CallContext(ctx, &json, "eth_getTransactionByHash", hash) if err != nil {