This commit is contained in:
Overtorment 2018-10-31 20:56:49 +00:00
parent ba96c8dec1
commit 6dea72553f

View file

@ -160,8 +160,13 @@ it('can work with malformed mnemonic', () => {
});
it('can create a Legacy HD (BIP44)', async function() {
if (!process.env.HD_MNEMONIC_BREAD) {
console.error('process.env.HD_MNEMONIC_BREAD not set, skipped');
return;
}
jasmine.DEFAULT_TIMEOUT_INTERVAL = 30 * 1000;
let mnemonic = 'high relief amount witness try remember adult destroy puppy fox giant peace';
let mnemonic = process.env.HD_MNEMONIC_BREAD;
let hd = new HDLegacyP2PKHWallet();
hd.setSecret(mnemonic);
assert.equal(hd.validateMnemonic(), true);