Skip to content

Commit 69888fb

Browse files
committed
fix refreshBalance
1 parent e3f0faa commit 69888fb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Models/Wallet.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Bavix\Wallet\Internal\Exceptions\LockProviderNotFoundException;
1515
use Bavix\Wallet\Internal\Exceptions\TransactionFailedException;
1616
use Bavix\Wallet\Internal\Service\MathServiceInterface;
17-
use Bavix\Wallet\Internal\Service\StateServiceInterface;
1817
use Bavix\Wallet\Internal\Service\UuidFactoryServiceInterface;
1918
use Bavix\Wallet\Services\AtomicServiceInterface;
2019
use Bavix\Wallet\Services\RegulatorServiceInterface;
@@ -115,8 +114,6 @@ public function setNameAttribute(string $name): void
115114
public function refreshBalance(): bool
116115
{
117116
return app(AtomicServiceInterface::class)->block($this, function () {
118-
app(StateServiceInterface::class)->drop($this->uuid);
119-
120117
$whatIs = $this->getBalanceAttribute();
121118
$balance = $this->getAvailableBalanceAttribute();
122119
if (app(MathServiceInterface::class)->compare($whatIs, $balance) === 0) {

0 commit comments

Comments
 (0)