Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed:
--> 8e9803b27fe37f007fc336aec73b45e44c5d30ab4088dd4fe1da7554b43fc71b:20:4
|
20 | self.Admin.pushHash(id: id, currentOwner: currentOwner, hash: hash)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--> b1e68105e47cfcf5.TraderflowNFT:205:41
|
205 | let nftRef: &TraderflowNFT.NFT = ownerCollection.borrowAuthNFT(id: id) ?? panic("This account does not own an NFT with this id.")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: failed to force-cast value: expected type `&TraderflowNFT.NFT`, got `&TraderflowNFT.NFT?`
--> b1e68105e47cfcf5.TraderflowNFT:142:17
|
142 | return ref as! &TraderflowNFT.NFT
| ^^^