settings: create new model
This commit is contained in:
parent
921cb8dd90
commit
d2861d9c2a
4 changed files with 32 additions and 22 deletions
|
|
@ -25,6 +25,7 @@ var TxProposal = require('./TxProposal');
|
|||
var TxProposals = require('./TxProposals');
|
||||
var PrivateKey = require('./PrivateKey');
|
||||
var WalletLock = require('./WalletLock');
|
||||
var Settings = require('./Settings');
|
||||
var copayConfig = require('../../../config');
|
||||
|
||||
/**
|
||||
|
|
@ -73,6 +74,7 @@ function Wallet(opts) {
|
|||
this.id = opts.id || Wallet.getRandomId();
|
||||
this.secretNumber = opts.secretNumber || Wallet.getRandomNumber();
|
||||
this.lock = new WalletLock(this.storage, this.id, opts.lockTimeOutMin);
|
||||
this.settings = new Settings(opts.settings);
|
||||
this.name = opts.name;
|
||||
|
||||
this.verbose = opts.verbose;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue