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 488ca66 commit 3974600Copy full SHA for 3974600
packages/stellar_client/lib/src/client.dart
@@ -365,9 +365,10 @@ class Client {
365
throw Exception('Balance with asset code ${currency} not found.');
366
});
367
// check that receiver account exists
368
- final receiver = await _sdk.accounts.account(accountId);
+ final balance = await getBalanceByAccountID(
369
+ network: _network, accountId: destinationAddress);
370
// check that asset exists
- var specificBalance = receiver.balances.firstWhere(
371
+ var specificBalance = balance.firstWhere(
372
(balance) => balance.assetCode == currency,
373
orElse: () {
374
0 commit comments