Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> f4f6aa12a9404ffbe578f507922297e262debf62a2f06aeb55b58cc9ce365741: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"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^