@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.
- package/package.json +1 -1
- package/src/mediator.js +0 -2
package/package.json
CHANGED
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({
|