@stellar-broker/client 0.6.7 → 0.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/mediator.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stellar-broker/client",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "description": "Client library for StellarBroker service",
5
5
  "author": "team@stellar.broker",
6
6
  "homepage": "https://stellar.broker",
package/src/mediator.js CHANGED
@@ -195,7 +195,7 @@ export class Mediator {
195
195
  source: this.mediatorAddress,
196
196
  inflationDest: this.source, //store source account to the inflation dest
197
197
  homeDomain: 'mediator.stellar.broker',
198
- masterWeight: Math.max(thresholds.high_threshold, thresholds.med_threshold), //own signer always has the highest weight
198
+ masterWeight: Math.max(1, thresholds.high_threshold, thresholds.med_threshold), //own signer always has the highest weight
199
199
  highThreshold: thresholds.high_threshold,
200
200
  medThreshold: thresholds.med_threshold,
201
201
  lowThreshold: thresholds.low_threshold,
@@ -208,7 +208,7 @@ export class Mediator {
208
208
  for (let i = 1; i < signers.length; i++) {
209
209
  ops.push(Operation.setOptions({
210
210
  source: this.mediatorAddress,
211
- signer: {
211
+ signer: { //cope signers and weights
212
212
  ed25519PublicKey: signers[i].key,
213
213
  weight: Math.max(1, signers[i].weight)
214
214
  }