Skip to content

Commit

Permalink
linter: cover docs/examples
Browse files Browse the repository at this point in the history
  • Loading branch information
pinheadmz committed May 2, 2019
1 parent d601b6a commit ff6570f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintfiles
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ lib/
migrate/
scripts/
test/
docs/examples
2 changes: 1 addition & 1 deletion docs/examples/client-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/create-sign-tx.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion docs/examples/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit ff6570f

Please sign in to comment.