Skip to content

Commit

Permalink
fix safeConfirm
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed Jul 8, 2024
1 parent f4d66aa commit 270d348
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Traits/CanConfirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ public function safeConfirm(Transaction $transaction): bool
{
try {
return $this->confirm($transaction);
} catch (ConfirmedInvalid) {
return true;
} catch (ExceptionInterface) {
return false;
}
Expand Down

0 comments on commit 270d348

Please sign in to comment.