fix: scan derivation balances check
This commit is contained in:
parent
5b0ea1b2af
commit
edb8735109
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue