mirror of https://github.com/embarklabs/embark.git
refactor(@embark/utils): bip39.mnemonicToSeed -> bip39.mnemonicToSeedSync
This commit is contained in:
parent
faa36550f7
commit
775881318f
|
@ -124,7 +124,7 @@ class AccountParser {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (accountConfig.mnemonic) {
|
if (accountConfig.mnemonic) {
|
||||||
const hdwallet = hdkey.fromMasterSeed(bip39.mnemonicToSeed(accountConfig.mnemonic.trim()));
|
const hdwallet = hdkey.fromMasterSeed(bip39.mnemonicToSeedSync(accountConfig.mnemonic.trim()));
|
||||||
|
|
||||||
const addressIndex = accountConfig.addressIndex || 0;
|
const addressIndex = accountConfig.addressIndex || 0;
|
||||||
const numAddresses = accountConfig.numAddresses || 1;
|
const numAddresses = accountConfig.numAddresses || 1;
|
||||||
|
|
Loading…
Reference in New Issue