add wrapper function to onIndexes

This commit is contained in:
Matias Alejo Garcia 2014-12-11 18:39:38 -03:00
parent 0544f757a1
commit a99e37bbdc
1 changed files with 6 additions and 1 deletions

View File

@ -266,7 +266,7 @@ Wallet.prototype.seedCopayer = function(pubKey) {
*
* @param {Object} data - the data recived, {@see HDParams#fromList}
*/
Wallet.prototype._onIndexes = function(indexes, fromTxProposal) {
Wallet.prototype._doOnIndexes = function(indexes, fromTxProposal) {
preconditions.checkArgument(indexes);
var inIndexes = HDParams.fromList(indexes);
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
* Changes wallet settings. The settings format is: