Merge pull request #439 from nodar-chkuaselidze/fix/account

account: fix create methods
This commit is contained in:
Christopher Jeffrey (JJ) 2018-04-06 10:11:55 -07:00 committed by GitHub
commit 447d0c8208
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
/**