Skip to content

Commit 6fe8bfe

Browse files
committed
fix bug in confirm service
1 parent be188de commit 6fe8bfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/CanConfirm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function confirm(Transaction $transaction): bool
3434
if ($transaction->type === Transaction::TYPE_WITHDRAW) {
3535
app(ConsistencyServiceInterface::class)->checkPotential(
3636
app(CastServiceInterface::class)->getWallet($this),
37-
app(MathServiceInterface::class)->abs($transaction->amount)
37+
app(MathServiceInterface::class)->negative($transaction->amount)
3838
);
3939
}
4040

0 commit comments

Comments
 (0)