We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca44385 commit cb64c15Copy full SHA for cb64c15
packages/stellar_client/lib/src/client.dart
@@ -364,7 +364,7 @@ class Client {
364
}
365
throw Exception('Balance with asset code ${currency} not found.');
366
});
367
- List<BalanceInfo> balance = [];
+ List<BalanceInfo> receiverBalance = [];
368
try {
369
// check that receiver account exists
370
receiverBalance = await getBalanceByAccountID(
@@ -374,7 +374,7 @@ class Client {
374
375
376
// check that asset exists
377
- var specificBalance = balance.firstWhere(
+ var specificBalance = receiverBalance.firstWhere(
378
(balance) => balance.assetCode == currency,
379
orElse: () {
380
0 commit comments