Skip to content

Commit cb64c15

Browse files
committed
fix renaming
1 parent ca44385 commit cb64c15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/stellar_client/lib/src/client.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ class Client {
364364
}
365365
throw Exception('Balance with asset code ${currency} not found.');
366366
});
367-
List<BalanceInfo> balance = [];
367+
List<BalanceInfo> receiverBalance = [];
368368
try {
369369
// check that receiver account exists
370370
receiverBalance = await getBalanceByAccountID(
@@ -374,7 +374,7 @@ class Client {
374374
}
375375

376376
// check that asset exists
377-
var specificBalance = balance.firstWhere(
377+
var specificBalance = receiverBalance.firstWhere(
378378
(balance) => balance.assetCode == currency,
379379
orElse: () {
380380
throw Exception('Balance with asset code ${currency} not found.');

0 commit comments

Comments
 (0)