Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> 36fe32e4534e8b86043a816a609e0c750aa637493d38ed63877a924d6b95cb01:104:8
|
104 | self.storefront.createListing(
105 | nftProviderCapability: self.nftProvider,
106 | paymentReceiver: self.paymentReceiver,
107 | nftType: self.nftType,
108 | nftID: saleItemID,
109 | salePaymentVaultType: Type<@FlowToken.Vault>(),
110 | price: saleItemPrice,
111 | customID: customID,
112 | expiry: UInt64(getCurrentBlock().timestamp) + expiry,
113 | buyer: buyer
114 | )
| ^
--> 3cdbb3d569211ff3.NFTStorefrontV2:591:17
|
591 | let cuts = NFTStorefrontV2.getPaymentCuts(r: paymentReceiver, n: nftRef, p: price, tokenType: salePaymentVaultType)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: failed to force-cast value: expected type `MetadataViews.Royalties?`, got `[MetadataViews.Royalty]?`
--> 3cdbb3d569211ff3.NFTStorefrontV2:857:16
|
857 | royalties = n.resolveView(Type<MetadataViews.Royalties>()) as! MetadataViews.Royalties?
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^