Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> 7d8e879e0b38495d30193b2d5eef6252708fc7661e5c3063acc5d9f178ad4916:199:8
|
199 | self.storefront.createListing(
200 | nftProviderCapability: self.HWGarageCardV2Provider,
201 | nftType: Type<@HWGarageCardV2.NFT>(),
202 | nftID: saleItemID,
203 | salePaymentVaultType: Type<@FlowToken.Vault>(),
204 | saleCuts: self.saleCuts,
205 | marketplacesCapability: self.marketplacesCapability.length == 0 ? nil : self.marketplacesCapability,
206 | customID: customID,
207 | commissionAmount: commissionAmount,
208 | expiry: expiry
209 | )
| ^
--> 4eb8a10cb9f87357.NFTStorefrontV2:605:34
|
605 | let listing <- create Listing(
606 | nftProviderCapability: nftProviderCapability,
607 | nftType: nftType,
608 | nftUUID: uuid,
609 | nftID: nftID,
610 | salePaymentVaultType: salePaymentVaultType,
611 | saleCuts: saleCuts,
612 | marketplacesCapability: marketplacesCapability,
613 | storefrontID: self.uuid,
614 | customID: customID,
615 | commissionAmount: commissionAmount,
616 | expiry: expiry
617 | )
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> 4eb8a10cb9f87357.NFTStorefrontV2:490:27
|
490 | self.details = ListingDetails(
491 | nftType: nftType,
492 | nftUUID: nftUUID,
493 | nftID: nftID,
494 | salePaymentVaultType: salePaymentVaultType,
495 | saleCuts: saleCuts,
496 | storefrontID: storefrontID,
497 | customID: customID,
498 | commissionAmount: commissionAmount,
499 | expiry: expiry
500 | )
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: pre-condition failed: Expiry should be in the future
--> 4eb8a10cb9f87357.NFTStorefrontV2:183:16
|
183 | expiry > UInt64(getCurrentBlock().timestamp): "Expiry should be in the future"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^