add wrapper function to onIndexes
This commit is contained in:
parent
0544f757a1
commit
a99e37bbdc
1 changed files with 6 additions and 1 deletions
|
|
@ -266,7 +266,7 @@ Wallet.prototype.seedCopayer = function(pubKey) {
|
||||||
*
|
*
|
||||||
* @param {Object} data - the data recived, {@see HDParams#fromList}
|
* @param {Object} data - the data recived, {@see HDParams#fromList}
|
||||||
*/
|
*/
|
||||||
Wallet.prototype._onIndexes = function(indexes, fromTxProposal) {
|
Wallet.prototype._doOnIndexes = function(indexes, fromTxProposal) {
|
||||||
preconditions.checkArgument(indexes);
|
preconditions.checkArgument(indexes);
|
||||||
var inIndexes = HDParams.fromList(indexes);
|
var inIndexes = HDParams.fromList(indexes);
|
||||||
var hasChanged = this.publicKeyRing.mergeIndexes(inIndexes);
|
var hasChanged = this.publicKeyRing.mergeIndexes(inIndexes);
|
||||||
|
|
@ -282,6 +282,11 @@ Wallet.prototype._onIndexes = function(indexes, fromTxProposal) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Wallet.prototype._onIndexes = function(senderId, data) {
|
||||||
|
return this._doOnIndexes(data.indexes);
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @desc
|
* @desc
|
||||||
* Changes wallet settings. The settings format is:
|
* Changes wallet settings. The settings format is:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue