Whoops! 😨 Something unexpected happened...
[Error Code: 1101] cadence runtime error Execution failed:
--> fad24d8c3aeaf7c40cf81e9979f2eba84ce94d1f95fab12bcc406e705daf1ddd:36:38
|
36 | let collection <- BlockleteMarket_NFT_V2.createSaleCollection(ownerCapability: ownerCapability, beneficiaryCapability: beneficiaryCapability, cutPercentage: cutPercentage) as! @BlockleteMarket_NFT_V2.SaleCollection
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> 9969d64233d69723.BlockleteMarket_NFT_V2:317:25
|
317 | return <- create SaleCollection(ownerCapability: ownerCapability, beneficiaryCapability: beneficiaryCapability, cutPercentage: cutPercentage)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: pre-condition failed: Owner's Receiver Capability is invalid!
--> 9969d64233d69723.BlockleteMarket_NFT_V2:122:16
|
122 | ownerCapability.borrow() != nil:
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^