mirror of https://github.com/BTCPrivate/copay.git
add wrapper function to onIndexes
This commit is contained in:
parent
0544f757a1
commit
a99e37bbdc
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue