change wallet version when storing

This commit is contained in:
Ivan Socolsky 2014-12-02 17:24:37 -03:00
commit ad02e46f56
3 changed files with 66 additions and 2 deletions

View file

@ -2623,6 +2623,14 @@ Wallet.prototype.getTransactionHistoryCsv = function(cb) {
}
/**
* @desc Sets the version of this wallet object
*
* @param {string} version - the new version for the wallet
*/
Wallet.prototype.setVersion = function(version) {
this.version = this.opts.version = version;
};
/**
* @desc Return a list of past transactions