mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Update ethclient/ethclient.go
This commit is contained in:
parent
c4bff96840
commit
853b07af34
1 changed files with 1 additions and 2 deletions
|
|
@ -306,8 +306,7 @@ func (ec *Client) TransactionInBlock(ctx context.Context, blockHash common.Hash,
|
|||
// Note that the receipt is not available for pending transactions.
|
||||
func (ec *Client) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error) {
|
||||
var r *types.Receipt
|
||||
err := ec.c.CallContext(ctx, &r, "eth_getTransactionReceipt", txHash)
|
||||
if err != nil {
|
||||
if err := ec.c.CallContext(ctx, &r, "eth_getTransactionReceipt", txHash); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if r == nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue