Skip to content

Commit 0f355e1

Browse files
committed
fix infect
1 parent f226dd1 commit 0f355e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Traits/CanExchange.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function forceExchange(Wallet $to, int|string $amount, ExtraDtoInterface|
7575
$fee = $taxService->getFee($to, $amount);
7676
$rate = app(ExchangeServiceInterface::class)->convertTo(
7777
$castService->getWallet($this)
78-
->currency,
78+
->getCurrencyAttribute(),
7979
$castService->getWallet($to)
8080
->currency,
8181
1

tests/Units/Domain/WalletFloatTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public function testMantissa(): void
197197

198198
$transaction = $user->withdrawFloat(2556.72);
199199
self::assertSame($transaction->amountInt, -255672);
200-
self::assertSame((float) $transaction->amountFloat, -2556.72);
200+
self::assertSame((float) $transaction->getAmountFloatAttribute(), -2556.72);
201201
self::assertSame($transaction->type, Transaction::TYPE_WITHDRAW);
202202

203203
self::assertSame($user->balanceInt, 1_000_000 - 255672);

0 commit comments

Comments
 (0)