assert.equals(wallet.seed, TREZOR_TEST_VECTORS.SEED_0.toUpperCase())\r
assert.equals(accounts.length, 4)\r
for (let i = 0; i < accounts.length; i++) {\r
- assert.ok(accounts[i])\r
- assert.ok(accounts[i].address)\r
- assert.ok(accounts[i].publicKey)\r
- assert.ok(accounts[i].privateKey)\r
+ assert.exists(accounts[i])\r
+ assert.exists(accounts[i].address)\r
+ assert.exists(accounts[i].publicKey)\r
+ assert.exists(accounts[i].privateKey)\r
assert.equals(accounts[i].index, i)\r
}\r
})\r
await wallet.unlock(NANO_TEST_VECTORS.PASSWORD)\r
const accounts = await wallet.accounts(0, 3)\r
\r
- console.log(`\nHERE 1\n`)\r
assert.ok('mnemonic' in wallet)\r
assert.ok('seed' in wallet)\r
assert.equals(wallet.mnemonic, TREZOR_TEST_VECTORS.MNEMONIC_0)\r
assert.equals(wallet.seed, TREZOR_TEST_VECTORS.ENTROPY_0)\r
assert.equals(accounts.length, 4)\r
- console.log(`\nHERE 2\n`)\r
+\r
for (let i = 0; i < accounts.length; i++) {\r
- assert.ok(accounts[i])\r
- assert.ok(accounts[i].address)\r
- assert.ok(accounts[i].publicKey)\r
- assert.ok(accounts[i].privateKey)\r
+ assert.exists(accounts[i])\r
+ assert.exists(accounts[i].address)\r
+ assert.exists(accounts[i].publicKey)\r
+ assert.exists(accounts[i].privateKey)\r
assert.equals(accounts[i].index, i)\r
}\r
})\r
const walletAccounts = await wallet.accounts()\r
const walletAccount = walletAccounts[0]\r
\r
- console.log(`\nHERE 3\n`)\r
assert.ok('mnemonic' in wallet)\r
assert.ok('seed' in wallet)\r
- assert.ok(walletAccount)\r
+ assert.exists(walletAccount)\r
assert.equals(wallet.mnemonic, TREZOR_TEST_VECTORS.MNEMONIC_2)\r
\r
- console.log(`\nHERE 4\n`)\r
const imported = await Blake2bWallet.fromMnemonic(TREZOR_TEST_VECTORS.PASSWORD, TREZOR_TEST_VECTORS.MNEMONIC_2)\r
await imported.unlock(TREZOR_TEST_VECTORS.PASSWORD)\r
const importedAccounts = await imported.accounts()\r