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