returning error when allet already exists in profile
This commit is contained in:
parent
4a01e35649
commit
bd0ddf5c8c
3 changed files with 13 additions and 1 deletions
|
|
@ -2550,7 +2550,10 @@ Wallet.prototype.isComplete = function() {
|
|||
* @param {string} version - the new version for the wallet
|
||||
*/
|
||||
Wallet.prototype.setVersion = function(version) {
|
||||
this.version = this.opts.version = version;
|
||||
this.version = version;
|
||||
if (this.opts) {
|
||||
this.opts.version = version;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue