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