mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-01 12:04:21 +01:00
Fix electrum unspent coins error (#1912)
* Refresh unspent coins before creating a transaction * disable seed verification in debug mode [skip ci]
This commit is contained in:
@@ -29,6 +29,7 @@ abstract class WalletSeedViewModelBase with Store {
|
||||
List<String> get seedSplit => seed.split(RegExp(r'\s+'));
|
||||
|
||||
int get columnCount => seedSplit.length <= 16 ? 2 : 3;
|
||||
|
||||
double get columnAspectRatio => seedSplit.length <= 16 ? 1.8 : 2.8;
|
||||
|
||||
/// The indices of the seed to be verified.
|
||||
@@ -60,8 +61,10 @@ abstract class WalletSeedViewModelBase with Store {
|
||||
bool isVerificationComplete = false;
|
||||
|
||||
void setupSeedVerification() {
|
||||
generateRandomIndices();
|
||||
generateOptions();
|
||||
if (verificationWordCount != 0) {
|
||||
generateRandomIndices();
|
||||
generateOptions();
|
||||
}
|
||||
}
|
||||
|
||||
/// Generate the indices of the seeds to be verified.
|
||||
|
||||
Reference in New Issue
Block a user