Skip to content

Commit

Permalink
Merge pull request #1883 from CortexFoundation/dev
Browse files Browse the repository at this point in the history
err handler fix
  • Loading branch information
ucwong authored Jan 5, 2024
2 parents 832f0d2 + 4c32000 commit 34ccc07
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions client/ctxc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,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, "ctxc_getTransactionReceipt", txHash)
if err == nil {
if r == nil {
return nil, cortex.NotFound
}
if err == nil && r == nil {
return nil, cortex.NotFound
}
return r, err
}
Expand Down

0 comments on commit 34ccc07

Please sign in to comment.