@stellar-broker/client 0.6.12 → 0.6.13

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 +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stellar-broker/client",
3
- "version": "0.6.12",
3
+ "version": "0.6.13",
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
@@ -176,8 +176,6 @@ export class Mediator {
176
176
  const sellingTrustline = findTrustline(sourceAccount, this.sellingAsset)
177
177
  if (!sellingTrustline || toStroops(sellingTrustline.balance) < this.sellingAmount)
178
178
  throw new Error('Insufficient selling asset balance')
179
- if (!findTrustline(sourceAccount, this.buyingAsset))
180
- throw new Error('Source account doesn\'t have buying asset trustline')
181
179
  //TODO: check authorizations
182
180
  //create trustline for selling asset
183
181
  ops.push(Operation.changeTrust({