Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> 706f63ccf72b8313d03614dcf3597a1399670f6f326c4a1c0ce25749048b9e67:74:8
|
74 | self.storefront.createListing(
75 | nftProviderCapability: self.collectionCap,
76 | paymentReceiver: self.paymentReceiver,
77 | nftType: self.nftType,
78 | nftID: saleItemID,
79 | salePaymentVaultType: Type<@DapperUtilityCoin.Vault>(),
80 | price: saleItemPrice,
81 | customID: customID,
82 | expiry: UInt64(getCurrentBlock().timestamp) + expiry,
83 | buyer: buyer
84 | )
| ^
--> 3cdbb3d569211ff3.NFTStorefrontV2:557:17
|
557 | let cuts = NFTStorefrontV2.getPaymentCuts(r: paymentReceiver, n: nftRef, p: price, tokenType: salePaymentVaultType)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> 3cdbb3d569211ff3.NFTStorefrontV2:856:16
|
856 | royalties = n.resolveView(Type<MetadataViews.Royalties>()) as! MetadataViews.Royalties?
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: unexpectedly found nil while forcing an Optional value
--> 427ceada271aa0b1.SturdyItems:78:31
|
78 | let thumbnailCID = metadata!["thumbnailCID"] != nil ? metadata!["thumbnailCID"]! : metadata!["imageCID"]!
| ^^^^^^^^^