Merge pull request #439 from nodar-chkuaselidze/fix/account
account: fix create methods
This commit is contained in:
commit
447d0c8208
@ -321,29 +321,29 @@ class Account {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new receiving address (increments receiveDepth).
|
* Create a new receiving address (increments receiveDepth).
|
||||||
* @returns {WalletKey}
|
* @returns {Promise} - Returns {@link WalletKey}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
createReceive() {
|
createReceive(b) {
|
||||||
return this.createKey(0);
|
return this.createKey(b, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new change address (increments receiveDepth).
|
* Create a new change address (increments receiveDepth).
|
||||||
* @returns {WalletKey}
|
* @returns {Promise} - Returns {@link WalletKey}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
createChange() {
|
createChange(b) {
|
||||||
return this.createKey(1);
|
return this.createKey(b, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new change address (increments receiveDepth).
|
* Create a new change address (increments receiveDepth).
|
||||||
* @returns {WalletKey}
|
* @returns {Promise} - Returns {@link WalletKey}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
createNested() {
|
createNested(b) {
|
||||||
return this.createKey(2);
|
return this.createKey(b, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user