Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> 0bc33147a6b287a47bf85d0d2a14527a41be7664204ba63fe43e6bf7827709a1:137:24
|
137 | let listingId = self.storefront.createListing(
138 | ins: <- self.ins,
139 | commissionRecipientCaps: nil,
140 | customID: nil
141 | )
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> d2abb5dbf5e08666.FRC20Storefront:1152:34
|
1152 | let listing <- create Listing(
1153 | storefrontId: storefrontId,
1154 | listIns: insRef,
1155 | commissionRecipientCaps: commissionRecipientCaps,
1156 | customID: customID
1157 | )
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> d2abb5dbf5e08666.FRC20Storefront:384:27
|
384 | self.details = ListingDetails(
385 | storefrontId: storefrontId,
386 | inscriptionId: listIns.getId(),
387 | type: listType,
388 | tick: order?.tick ?? panic("Unable to fetch the tick"),
389 | amount: order?.amount ?? panic("Unable to fetch the amount"),
390 | totalPrice: order?.totalPrice ?? panic("Unable to fetch the total price"),
391 | saleCuts: order?.cuts ?? panic("Unable to fetch the cuts"),
392 | customID: customID
393 | )
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: overflow
--> d2abb5dbf5e08666.FRC20Storefront:189:37
|
189 | self.priceValuePerMint = self.totalPrice * tokenMeta.limit / amount
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^