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() {
|
Wallet.prototype.toObj = function() {
|
||||||
var optsObj = this._optsToObj();
|
var optsObj = this._optsToObj();
|
||||||
|
|
||||||
var networkNonce = this.network.getHexNonce();
|
|
||||||
var networkNonces = this.network.getHexNonces();
|
|
||||||
|
|
||||||
var walletObj = {
|
var walletObj = {
|
||||||
opts: optsObj,
|
opts: optsObj,
|
||||||
settings: this.settings,
|
settings: this.settings,
|
||||||
networkNonce: networkNonce, //yours
|
networkNonce: this.network.getHexNonce(), //yours
|
||||||
networkNonces: networkNonces, //copayers
|
networkNonces: this.network.getHexNonces(), //copayers
|
||||||
publicKeyRing: this.publicKeyRing.toObj(),
|
publicKeyRing: this.publicKeyRing.toObj(),
|
||||||
txProposals: this.txProposals.toObj(),
|
txProposals: this.txProposals.toObj(),
|
||||||
privateKey: this.privateKey ? this.privateKey.toObj() : undefined,
|
privateKey: this.privateKey ? this.privateKey.toObj() : undefined,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue