Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> b9b509dec64240d12a20e13c97cc0ad85671e2ba8a2abed312f716f534111d5f:30:50
|
30 | let cardToTransfer: @HWGarageCardV2.NFT <-acct.storage.borrow<auth(NonFungibleToken.Withdraw) &{NonFungibleToken.Provider}>(from: HWGarageCardV2.CollectionStoragePath)!.withdraw(withdrawID: cardEditionID) as! @HWGarageCardV2.NFT
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: panic: missing NFT
--> d0bcefdf1e67ea85.HWGarageCardV2:182:67
|
182 | let token <- self.ownedNFTs.remove(key: withdrawID) ?? panic("missing NFT")
| ^^^^^^^^^^^^^^^^^^^^