Skip to content

Commit

Permalink
fix: remove unncessary error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
sherpalden committed Dec 16, 2024
1 parent cb9b50e commit 2f4c585
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions relayer/chains/evm/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,7 @@ func (p *Provider) WaitForResults(ctx context.Context, tx *ethTypes.Transaction)

// handle txn not found case:
if time.Since(startTime) > DefaultTxConfirmationTimeout {
if err != nil {
return txReceipt, err
} else {
return txReceipt, fmt.Errorf("tx confirmation timed out [tx hash: %s]", tx.Hash())
}
return txReceipt, fmt.Errorf("tx confirmation timed out [tx hash: %s]", tx.Hash())
}
}
}
Expand Down

0 comments on commit 2f4c585

Please sign in to comment.