Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> 645206e5965a6b5990da71c90df47a7bb023c1828dc8cf0900451156e07fcc3c:13:22
|
13 | self.token <- collection.withdraw(withdrawID: withdrawID)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: panic: withdraw() failed: missing NFT with id: 215174
--> ca63ce22f0d6bdba.Cryptoys:203:67
|
203 | let token <- self.ownedNFTs.remove(key: withdrawID) ?? panic("withdraw() failed: missing NFT with id: ".concat(withdrawID.toString()))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^