CODE_ERROR
There is an error in the cadence code of this transaction.
[Error Code: 1101] cadence runtime error Execution failed: error: mismatched types --> 12450e4bb3b7666e.Genies:505:23 | 505 | let edition = &Genies.editionByID[id] as &Genies.Edition | ^^^^^^^^^^^^^^^^^^^^^^ expected `Genies.Edition`, got `Genies.Edition?` error: mismatched types --> 12450e4bb3b7666e.Genies:115:26 | 115 | let series = &Genies.seriesByID[id] as! &Genies.Series | ^^^^^^^^^^^^^^^^^^^^^ expected `Genies.Series`, got `Genies.Series?` error: mismatched types --> 12450e4bb3b7666e.Genies:183:30 | 183 | let collection = &Genies.collectionByID[collectionID] as &Genies.GeniesCollection | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Genies.GeniesCollection`, got `Genies.GeniesCollection?` error: mismatched types --> 12450e4bb3b7666e.Genies:194:34 | 194 | let collection = &Genies.collectionByID[collectionID] as &Genies.GeniesCollection | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Genies.GeniesCollection`, got `Genies.GeniesCollection?` error: mismatched types --> 12450e4bb3b7666e.Genies:278:30 | 278 | let collection = &Genies.collectionByID[id] as! &Genies.GeniesCollection | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Genies.GeniesCollection`, got `Genies.GeniesCollection?` error: mismatched types --> 12450e4bb3b7666e.Genies:335:27 | 335 | let edition = &Genies.editionByID[editionID] as &Edition | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Genies.Edition`, got `Genies.Edition?` error: mismatched types --> 12450e4bb3b7666e.Genies:411:27 | 411 | let edition = &Genies.editionByID[id] as! &Genies.Edition | ^^^^^^^^^^^^^^^^^^^^^^ expected `Genies.Edition`, got `Genies.Edition?` error: mismatched types --> 12450e4bb3b7666e.Genies:537:18 | 537 | (&Genies.editionByID[editionID] as &Edition).open: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Genies.Edition`, got `Genies.Edition?` error: mismatched types --> 12450e4bb3b7666e.Genies:634:20 | 634 | return &self.ownedNFTs[id] as &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: mismatched types --> 12450e4bb3b7666e.Genies:641:27 | 641 | let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: mismatched types --> 12450e4bb3b7666e.Genies:692:25 | 692 | || (&Genies.seriesByID[Genies.currentSeriesID] as &Genies.Series).collectionsOpen == 0: | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Genies.Series`, got `Genies.Series?` error: mismatched types --> 12450e4bb3b7666e.Genies:701:37 | 701 | let currentSeries = &Genies.seriesByID[Genies.currentSeriesID] as &Genies.Series | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Genies.Series`, got `Genies.Series?` error: mismatched types --> 12450e4bb3b7666e.Genies:734:20 | 734 | return &Genies.seriesByID[id] as &Genies.Series | ^^^^^^^^^^^^^^^^^^^^^ expected `Genies.Series`, got `Genies.Series?` error: mismatched types --> 12450e4bb3b7666e.Genies:744:20 | 744 | return &Genies.collectionByID[id] as &Genies.GeniesCollection | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Genies.GeniesCollection`, got `Genies.GeniesCollection?` error: mismatched types --> 12450e4bb3b7666e.Genies:754:20 | 754 | return &Genies.editionByID[id] as &Genies.Edition | ^^^^^^^^^^^^^^^^^^^^^^ expected `Genies.Edition`, got `Genies.Edition?` error: cannot find type in this scope: `Genies` --> 09dadd50a5ffa4baa0ad534e76e86bdb65613b3d76419e555b727ad3371ac3e5:6:26 | 6 | if signer.borrow<&Genies.Collection>(from: Genies.CollectionStoragePath) == nil { | ^^^^^^ not found in this scope error: cannot find variable in this scope: `Genies` --> 09dadd50a5ffa4baa0ad534e76e86bdb65613b3d76419e555b727ad3371ac3e5:6:51 | 6 | if signer.borrow<&Genies.Collection>(from: Genies.CollectionStoragePath) == nil { | ^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 09dadd50a5ffa4baa0ad534e76e86bdb65613b3d76419e555b727ad3371ac3e5:6:11 | 6 | if signer.borrow<&Genies.Collection>(from: Genies.CollectionStoragePath) == nil { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `Genies` --> 09dadd50a5ffa4baa0ad534e76e86bdb65613b3d76419e555b727ad3371ac3e5:7:26 | 7 | signer.save(<-Genies.createEmptyCollection(), to: Genies.CollectionStoragePath) | ^^^^^^ not found in this scope error: cannot find variable in this scope: `Genies` --> 09dadd50a5ffa4baa0ad534e76e86bdb65613b3d76419e555b727ad3371ac3e5:7:62 | 7 | signer.save(<-Genies.createEmptyCollection(), to: Genies.CollectionStoragePath) | ^^^^^^ not found in this scope error: cannot find type in this scope: `Genies` --> 09dadd50a5ffa4baa0ad534e76e86bdb65613b3d76419e555b727ad3371ac3e5:9:25 | 9 | signer.link<&Genies.Collection{Genies.GeniesNFTCollectionPublic, NonFungibleToken.Receiver}>( | ^^^^^^ not found in this scope error: cannot find type in this scope: `Genies` --> 09dadd50a5ffa4baa0ad534e76e86bdb65613b3d76419e555b727ad3371ac3e5:9:43 | 9 | signer.link<&Genies.Collection{Genies.GeniesNFTCollectionPublic, NonFungibleToken.Receiver}>( | ^^^^^^ not found in this scope error: cannot find variable in this scope: `Genies` --> 09dadd50a5ffa4baa0ad534e76e86bdb65613b3d76419e555b727ad3371ac3e5:10:16 | 10 | Genies.CollectionPublicPath, | ^^^^^^ not found in this scope error: cannot find variable in this scope: `Genies` --> 09dadd50a5ffa4baa0ad534e76e86bdb65613b3d76419e555b727ad3371ac3e5:11:24 | 11 | target: Genies.CollectionStoragePath | ^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 09dadd50a5ffa4baa0ad534e76e86bdb65613b3d76419e555b727ad3371ac3e5:9:12 | 9 | signer.link<&Genies.Collection{Genies.GeniesNFTCollectionPublic, NonFungibleToken.Receiver}>( |