settings: small refactor
This commit is contained in:
parent
cff9f567bb
commit
c9cb2aae57
1 changed files with 2 additions and 5 deletions
|
|
@ -791,14 +791,11 @@ Wallet.prototype.store = function() {
|
|||
Wallet.prototype.toObj = function() {
|
||||
var optsObj = this._optsToObj();
|
||||
|
||||
var networkNonce = this.network.getHexNonce();
|
||||
var networkNonces = this.network.getHexNonces();
|
||||
|
||||
var walletObj = {
|
||||
opts: optsObj,
|
||||
settings: this.settings,
|
||||
networkNonce: networkNonce, //yours
|
||||
networkNonces: networkNonces, //copayers
|
||||
networkNonce: this.network.getHexNonce(), //yours
|
||||
networkNonces: this.network.getHexNonces(), //copayers
|
||||
publicKeyRing: this.publicKeyRing.toObj(),
|
||||
txProposals: this.txProposals.toObj(),
|
||||
privateKey: this.privateKey ? this.privateKey.toObj() : undefined,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue