Skip to content
Snippets Groups Projects
Commit edb87351 authored by poka's avatar poka
Browse files

fix: scan derivation balances check

parent 5b0ea1b2
No related branches found
No related tags found
No related merge requests found
Pipeline #16757 waiting for manual action
...@@ -391,14 +391,15 @@ class GenerateWalletsProvider with ChangeNotifier { ...@@ -391,14 +391,15 @@ class GenerateWalletsProvider with ChangeNotifier {
mnemonic: generatedMnemonic!, mnemonic: generatedMnemonic!,
derivePath: '//$derivationNbr'); derivePath: '//$derivationNbr');
final balance = await sub.getBalance(addressData.address!).timeout( final Map balance = await sub.getBalance(addressData.address!).timeout(
const Duration(seconds: 1), const Duration(seconds: 1),
onTimeout: () => {}, onTimeout: () => {},
); );
// const balance = 0; // const balance = 0;
log.d(balance); log.d(
if (balance != {}) { "${addressData.address!}: ${balance['transferableBalance']} $currencyName");
if (balance['transferableBalance'] != 0) {
isAlive = true; isAlive = true;
String walletName = scanedWalletNumber == 0 String walletName = scanedWalletNumber == 0
? 'currentWallet'.tr() ? 'currentWallet'.tr()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment