add wrapper function to onIndexes

This commit is contained in:
Matias Alejo Garcia 2014-12-11 18:39:38 -03:00
commit a99e37bbdc

View file

@ -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: