Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> 3fdc4f5bcc4f717e8111d89b052218051bd40d4f7e96625d0008d1db3d0ccf02:184:12
|
184 | listing?.takeSellNow(ins: insRef, commissionRecipient: commissionFlowRecipient)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> d2abb5dbf5e08666.FRC20Storefront:632:30
|
632 | let restChange <- frc20Indexer.applySellNowOrder(
633 | makerIns: buyerIns,
634 | takerIns: ins,
635 | maxAmount: maxAmount,
636 | change: <- (flowTokenChange ?? panic("Unable to get the flow token change")),
637 | fun (_ realTransactedAmt: UFix64, flowToPay: @FlowToken.Vault): Bool {
638 | pre {
639 | realTransactedAmt > 0.0 : "Transacted amount should be greater than zero"
640 | flowToPay.balance > 0.0 : "Payment amount should be greater than zero"
641 | }
642 | // update the transacted amount
643 | detailRef.transact(amount: realTransactedAmt)
644 | // cache the transacted amount
645 | transactedAmt = realTransactedAmt
646 | // cache the payment vault to the caller
647 | paymentRef.deposit(from: <- flowToPay)
648 | // return true if the listing is fully transacted
649 | return detailRef.isFullyTransacted()
650 | }
651 | )
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> d2abb5dbf5e08666.FRC20Indexer:1113:12
|
1113 | self._transferToken(tick: tick, fromAddr: takerAddr, to: makerAddr, amt: transactAmount)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> d2abb5dbf5e08666.FRC20Indexer:1420:26
|
1420 | let change <- self._withdrawToTokenChange(tick: tick, fromAddr: fromAddr, amt: amt)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: assertion failed: The from address does not have enough balance
--> d2abb5dbf5e08666.FRC20Indexer:1451:12
|
1451 | assert(
1452 | fromBalance >= amt && amt > 0.0,
1453 | message: "The from address does not have enough balance"
1454 | )
| ^