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