mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-04 04:13:49 +01:00
ADD: import bip39 multilang mnemonics
This commit is contained in:
parent
ea08b12ffe
commit
19c18c99ef
1 changed files with 13 additions and 0 deletions
|
@ -174,6 +174,19 @@ describe('import procedure', () => {
|
||||||
assert.strictEqual(store.state.wallets[0]._getExternalAddressByIndex(0), '1EgDbwf5nXp9knoaWW6nV6N91EK3EFQ5vC');
|
assert.strictEqual(store.state.wallets[0]._getExternalAddressByIndex(0), '1EgDbwf5nXp9knoaWW6nV6N91EK3EFQ5vC');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('can import BIP44 with mnemonic in french', async () => {
|
||||||
|
const store = createStore();
|
||||||
|
const { promise } = startImport(
|
||||||
|
'abaisser abaisser abaisser abaisser abaisser abaisser abaisser abaisser abaisser abaisser abaisser abeille',
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
...store.callbacks,
|
||||||
|
);
|
||||||
|
await promise;
|
||||||
|
assert.strictEqual(store.state.wallets[0].type, HDLegacyP2PKHWallet.type);
|
||||||
|
assert.strictEqual(store.state.wallets[0]._getExternalAddressByIndex(0), '1JFdzwd8SqFn5LeeiDKcbYUfXxvButqXgX');
|
||||||
|
});
|
||||||
|
|
||||||
it('can import BIP49', async () => {
|
it('can import BIP49', async () => {
|
||||||
const store = createStore();
|
const store = createStore();
|
||||||
const { promise } = startImport(
|
const { promise } = startImport(
|
||||||
|
|
Loading…
Add table
Reference in a new issue