linter: cover docs/examples

This commit is contained in:
Matthew Zipkin 2019-05-02 08:16:11 -07:00
parent d601b6a303
commit ff6570fa45
No known key found for this signature in database
GPG Key ID: E7E2984B6289C93A
4 changed files with 4 additions and 3 deletions

View File

@ -10,3 +10,4 @@ lib/
migrate/
scripts/
test/
docs/examples

View File

@ -96,7 +96,7 @@ async function callNodeApi() {
await walletClient.open();
// subscribe to events from all wallets
walletClient.all()
walletClient.all();
// Fund default account.
// API call: walletClient.createAddress('test', 'default')

View File

@ -7,7 +7,7 @@ const assert = require('assert');
(async () => {
const master = bcoin.hd.generate();
const key = master.derivePath("m/44'/0'/0'/0/0");
const key = master.derivePath('m/44\'/0\'/0\'/0/0');
const keyring = new bcoin.wallet.WalletKey(key.privateKey);
const cb = new bcoin.MTX();

View File

@ -36,7 +36,7 @@ const walletdb = new bcoin.wallet.WalletDB({
wallet.on('tx', (tx) => {
console.log('Received transaciton:\n', tx);
})
});
await walletdb.addTX(tx);
})().catch((err) => {