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` --> 92921f59d7bba14c084ddfd7ec65c1f8139f26f483cb012c54f7fd95593d6fc8: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` --> 92921f59d7bba14c084ddfd7ec65c1f8139f26f483cb012c54f7fd95593d6fc8:6:51 | 6 | if signer.borrow<&Genies.Collection>(from: Genies.CollectionStoragePath) == nil { | ^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 92921f59d7bba14c084ddfd7ec65c1f8139f26f483cb012c54f7fd95593d6fc8:6:11 | 6 | if signer.borrow<&Genies.Collection>(from: Genies.CollectionStoragePath) == nil { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `Genies` --> 92921f59d7bba14c084ddfd7ec65c1f8139f26f483cb012c54f7fd95593d6fc8:7:26 | 7 | signer.save(<-Genies.createEmptyCollection(), to: Genies.CollectionStoragePath) | ^^^^^^ not found in this scope error: cannot find variable in this scope: `Genies` --> 92921f59d7bba14c084ddfd7ec65c1f8139f26f483cb012c54f7fd95593d6fc8:7:62 | 7 | signer.save(<-Genies.createEmptyCollection(), to: Genies.CollectionStoragePath) | ^^^^^^ not found in this scope error: cannot find type in this scope: `Genies` --> 92921f59d7bba14c084ddfd7ec65c1f8139f26f483cb012c54f7fd95593d6fc8:9:25 | 9 | signer.link<&Genies.Collection{Genies.GeniesNFTCollectionPublic, NonFungibleToken.Receiver}>( | ^^^^^^ not found in this scope error: cannot find type in this scope: `Genies` --> 92921f59d7bba14c084ddfd7ec65c1f8139f26f483cb012c54f7fd95593d6fc8:9:43 | 9 | signer.link<&Genies.Collection{Genies.GeniesNFTCollectionPublic, NonFungibleToken.Receiver}>( | ^^^^^^ not found in this scope error: cannot find variable in this scope: `Genies` --> 92921f59d7bba14c084ddfd7ec65c1f8139f26f483cb012c54f7fd95593d6fc8:10:16 | 10 | Genies.CollectionPublicPath, | ^^^^^^ not found in this scope error: cannot find variable in this scope: `Genies` --> 92921f59d7bba14c084ddfd7ec65c1f8139f26f483cb012c54f7fd95593d6fc8:11:24 | 11 | target: Genies.CollectionStoragePath | ^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 92921f59d7bba14c084ddfd7ec65c1f8139f26f483cb012c54f7fd95593d6fc8:9:12 | 9 | signer.link<&Genies.Collection{Genies.GeniesNFTCollectionPublic, NonFungibleToken.Receiver}>( |