Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> 235a2ff5cae9f3a68b962fd057e1f19e6783b6d9aa298dc6f329d70e2a470329:80:20
|
80 | let item <- self.listing.purchase(
81 | payment: <-self.paymentVault
82 | )
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: pre-condition failed: listing has already been purchased
--> 4eb8a10cb9f87357.NFTStorefront:243:16
|
243 | self.details.purchased == false: "listing has already been purchased"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^