mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-27 21:00:41 +00:00
DOM.strength renamed DOM.generatedStrength
to avoid confusion with entropy strength
This commit is contained in:
+2
-2
@@ -43,7 +43,7 @@
|
|||||||
DOM.bip44coin = $("#bip44 .coin");
|
DOM.bip44coin = $("#bip44 .coin");
|
||||||
DOM.bip44account = $("#bip44 .account");
|
DOM.bip44account = $("#bip44 .account");
|
||||||
DOM.bip44change = $("#bip44 .change");
|
DOM.bip44change = $("#bip44 .change");
|
||||||
DOM.strength = $(".strength");
|
DOM.generatedStrength = $(".generate-container .strength");
|
||||||
DOM.hardenedAddresses = $(".hardened-addresses");
|
DOM.hardenedAddresses = $(".hardened-addresses");
|
||||||
DOM.addresses = $(".addresses");
|
DOM.addresses = $(".addresses");
|
||||||
DOM.rowsToAdd = $(".rows-to-add");
|
DOM.rowsToAdd = $(".rows-to-add");
|
||||||
@@ -286,7 +286,7 @@
|
|||||||
showValidationError(errorText);
|
showValidationError(errorText);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var numWords = parseInt(DOM.strength.val());
|
var numWords = parseInt(DOM.generatedStrength.val());
|
||||||
var strength = numWords / 3 * 32;
|
var strength = numWords / 3 * 32;
|
||||||
var words = mnemonic.generate(strength);
|
var words = mnemonic.generate(strength);
|
||||||
DOM.phrase.val(words);
|
DOM.phrase.val(words);
|
||||||
|
|||||||
Reference in New Issue
Block a user