Skip to content

Commit 94bb97a

Browse files
committed
fixed calculateBalance
1 parent abb255e commit 94bb97a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/Wallet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function getAvailableBalance(): int
8686
*/
8787
public function calculateBalance(): bool
8888
{
89-
$balance = $this->getBalanceAttribute();
89+
$balance = $this->getAvailableBalance();
9090
WalletProxy::set($this->getKey(), $balance);
9191
$this->attributes['balance'] = $balance;
9292

0 commit comments

Comments
 (0)