Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> 458e02b8b7e87c353a46a95e27647f9db97b4fd8169f9e791d178e42d7ae9334:52:10
|
52 | createListing(seller, storefront, request, paymentReceiver, paymentType, nftRef, typeRef, cache)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> 458e02b8b7e87c353a46a95e27647f9db97b4fd8169f9e791d178e42d7ae9334:84:2
|
84 | storefront.createListing(
85 | nftProviderCapability: collectionCap,
86 | paymentReceiver: paymentReceiver,
87 | nftType: typeCache[r.nftTypeIdentifier]!,
88 | nftID: r.nftID,
89 | salePaymentVaultType: paymentType,
90 | price: r.price,
91 | customID: r.customID,
92 | expiry: UInt64(getCurrentBlock().timestamp) + r.expiry,
93 | buyer: r.buyerAddress
94 | )
| ^
error: assertion failed: nft cannot be nil
--> 3cdbb3d569211ff3.NFTStorefrontV2:619:4
|
619 | assert(nftRef != nil, message: "nft cannot be nil")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^