mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
This commit is contained in:
parent
d138eb22a3
commit
f49d90eb69
1 changed files with 2 additions and 4 deletions
|
|
@ -307,10 +307,8 @@ func (ec *Client) TransactionInBlock(ctx context.Context, blockHash common.Hash,
|
|||
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 r == nil {
|
||||
return nil, ethereum.ErrNotFound
|
||||
}
|
||||
if err == nil && r == nil {
|
||||
return nil, ethereum.ErrNotFound
|
||||
}
|
||||
return r, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue