mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
ethclient: rename to TransactionInclusionBlock
This commit is contained in:
parent
b406147c49
commit
ffbb9033ae
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue