fix: can delete wallet just after set it to default

This commit is contained in:
poka 2022-08-13 13:45:43 +02:00
parent 2d1b3731bb
commit c603d2b201
3 changed files with 7 additions and 2 deletions

View File

@ -261,7 +261,9 @@ class SubstrateSdk with ChangeNotifier {
} else {
result.putIfAbsent('canCert', () => 0);
}
log.d('tatatatata: ${nextIssuableOn - blocNumber}');
}
return result;
}
@ -632,7 +634,7 @@ class SubstrateSdk with ChangeNotifier {
rawParams = '[[$tx1, $tx2]]';
}
// log.d('yooooo: ${txInfo.module}, ${txInfo.call}, $txOptions, $rawParams');
// log.d('pay args: ${txInfo.module}, ${txInfo.call}, $txOptions, $rawParams');
return await executeCall(txInfo, txOptions, password, rawParams);
}

View File

@ -457,12 +457,15 @@ class WalletOptions extends StatelessWidget {
SubstrateSdk sub = Provider.of<SubstrateSdk>(context, listen: false);
MyWalletsProvider myWalletProvider =
Provider.of<MyWalletsProvider>(context, listen: false);
WalletOptionsProvider walletOptions =
Provider.of<WalletOptionsProvider>(context, listen: false);
// WalletData defaultWallet = _myWalletProvider.getDefaultWallet()!;
// defaultWallet = wallet;
await sub.setCurrentWallet(wallet);
myWalletProvider.readAllWallets(currentChest);
myWalletProvider.rebuildWidget();
walletOptions.reloadBuild();
}
Widget deleteWallet(BuildContext context,

View File

@ -5,7 +5,7 @@ description: Pay with G1.
# pub.dev using `pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 0.0.9+17
version: 0.0.9+18
environment:
sdk: '>=2.12.0 <3.0.0'