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 {
mnemonic: generatedMnemonic!,
derivePath: '//$derivationNbr');
final balance = await sub.getBalance(addressData.address!).timeout(
final Map balance = await sub.getBalance(addressData.address!).timeout(
const Duration(seconds: 1),
onTimeout: () => {},
);
// const balance = 0;
log.d(balance);
if (balance != {}) {
log.d(
"${addressData.address!}: ${balance['transferableBalance']} $currencyName");
if (balance['transferableBalance'] != 0) {
isAlive = true;
String walletName = scanedWalletNumber == 0
? 'currentWallet'.tr()
......
......@@ -10,7 +10,7 @@ version: 0.0.9+19
environment:
sdk: '>=2.12.0 <3.0.0'
dependencies:
dependencies:
flutter:
sdk: flutter
flutter_driver:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment