From 022e08737a367f8a0bb67fef3866053895b71193 Mon Sep 17 00:00:00 2001 From: Nodar Chkuaselidze Date: Fri, 30 Mar 2018 20:29:34 -0700 Subject: [PATCH] account: fix create methods --- lib/wallet/account.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/wallet/account.js b/lib/wallet/account.js index d50f7fa2..c29b4a8e 100644 --- a/lib/wallet/account.js +++ b/lib/wallet/account.js @@ -321,29 +321,29 @@ class Account { /** * Create a new receiving address (increments receiveDepth). - * @returns {WalletKey} + * @returns {Promise} - Returns {@link WalletKey} */ - createReceive() { - return this.createKey(0); + createReceive(b) { + return this.createKey(b, 0); } /** * Create a new change address (increments receiveDepth). - * @returns {WalletKey} + * @returns {Promise} - Returns {@link WalletKey} */ - createChange() { - return this.createKey(1); + createChange(b) { + return this.createKey(b, 1); } /** * Create a new change address (increments receiveDepth). - * @returns {WalletKey} + * @returns {Promise} - Returns {@link WalletKey} */ - createNested() { - return this.createKey(2); + createNested(b) { + return this.createKey(b, 2); } /**