This transaction is too complex it does too much logic or read/write to much data.
[Error Code: 1110] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> 10df5887fdbeb89751e4f5ef0c60692fc4d6bd01a2a3f9d7a48284bf6f16f8d9:50:24
|
50 | Marketplace.removeListing(id: purchaseModel.listingResourceID)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: failed to retrieve slab 0xdc5127882cacf8d9.28209789: get value failed: [Error Code: 1110] computation exceeds limit (9999)
--> dc5127882cacf8d9.Marketplace:125:8
|
125 | if let item = self.listingIDItems[id] {
126 | // Skip if the listing item hasn't been purchased
127 | if let storefrontPublic = item.storefrontPublicCapability.borrow() {
128 | if let listingItem = storefrontPublic.borrowListing(listingResourceID: id) {
129 | let listingDetails = listingItem.getDetails()
130 | if listingDetails.purchased == false {
131 | return
132 | }
133 | }
134 | }
135 |
136 | self.removeItem(item)
137 | }
| ^