CODE_ERROR
There is an error in the cadence code of this transaction.
[Error Code: 1101] cadence runtime error Execution failed: error: mismatched types --> a49cc0ee46c54bfb.MotoGPPack:79:45 | 79 | let packTypeStruct: &PackType = &MotoGPPack.packTypes[_packType] as &PackType | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `MotoGPPack.PackType`, got `MotoGPPack.PackType?` error: mismatched types --> a49cc0ee46c54bfb.MotoGPPack:243:20 | 243 | return &self.ownedNFTs[id] as &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: mismatched types --> a49cc0ee46c54bfb.MotoGPPack:253:27 | 253 | let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: cannot find variable in this scope: `MotoGPPack` --> a49cc0ee46c54bfb.MotoGPAdmin:25:16 | 25 | MotoGPPack.packTypes[packType] == nil: | ^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `MotoGPPack` --> a49cc0ee46c54bfb.MotoGPAdmin:29:12 | 29 | MotoGPPack.packTypes[packType] = MotoGPPack.PackType(_packType: packType, _numberOfCards: numberOfCards) | ^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `MotoGPPack` --> a49cc0ee46c54bfb.MotoGPAdmin:29:45 | 29 | MotoGPPack.packTypes[packType] = MotoGPPack.PackType(_packType: packType, _numberOfCards: numberOfCards) | ^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `MotoGPPack` --> a49cc0ee46c54bfb.MotoGPAdmin:38:16 | 38 | MotoGPPack.packTypes[packType] != nil: | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPPack` --> a49cc0ee46c54bfb.MotoGPAdmin:47:66 | 47 | let adminPackCollection = MotoGPAdmin.account.borrow<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic}>(from: /storage/motogpPackCollection)! | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPPack` --> a49cc0ee46c54bfb.MotoGPAdmin:47:88 | 47 | let adminPackCollection = MotoGPAdmin.account.borrow<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic}>(from: /storage/motogpPackCollection)! | ^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> a49cc0ee46c54bfb.MotoGPAdmin:47:38 | 47 | let adminPackCollection = MotoGPAdmin.account.borrow<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic}>(from: /storage/motogpPackCollection)! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `MotoGPPack` --> a49cc0ee46c54bfb.MotoGPAdmin:51:31 | 51 | let newPack <- MotoGPPack.createPack(packNumber: packNumbers[i], packType: packType) | ^^^^^^^^^^ not found in this scope error: mismatched types --> a49cc0ee46c54bfb.MotoGPPack:79:45 | 79 | let packTypeStruct: &PackType = &MotoGPPack.packTypes[_packType] as &PackType | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `MotoGPPack.PackType`, got `MotoGPPack.PackType?` error: mismatched types --> a49cc0ee46c54bfb.MotoGPPack:243:20 | 243 | return &self.ownedNFTs[id] as &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: mismatched types --> a49cc0ee46c54bfb.MotoGPPack:253:27 | 253 | let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: cannot find variable in this scope: `MotoGPPack` --> a49cc0ee46c54bfb.MotoGPAdmin:25:16 | 25 | MotoGPPack.packTypes[packType] == nil: | ^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `MotoGPPack` --> a49cc0ee46c54bfb.MotoGPAdmin:29:12 | 29 | MotoGPPack.packTypes[packType] = MotoGPPack.PackType(_packType: packType, _numberOfCards: numberOfCards) | ^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `MotoGPPack` --> a49cc0ee46c54bfb.MotoGPAdmin:29:45 | 29 | MotoGPPack.packTypes[packType] = MotoGPPack.PackType(_packType: packType, _numberOfCards: numberOfCards) | ^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `MotoGPPack` --> a49cc0ee46c54bfb.MotoGPAdmin:38:16 | 38 | MotoGPPack.packTypes[packType] != nil: | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPPack` --> a49cc0ee46c54bfb.MotoGPAdmin:47:66 | 47 | let adminPackCollection = MotoGPAdmin.account.borrow<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic}>(from: /storage/motogpPackCollection)! | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPPack` --> a49cc0ee46c54bfb.MotoGPAdmin:47:88 | 47 | let adminPackCollection = MotoGPAdmin.account.borrow<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic}>(from: /storage/motogpPackCollection)! | ^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> a49cc0ee46c54bfb.MotoGPAdmin:47:38 | 47 | let adminPackCollection = MotoGPAdmin.account.borrow<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic}>(from: /storage/motogpPackCollection)! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `MotoGPPack` --> a49cc0ee46c54bfb.MotoGPAdmin:51:31 | 51 | let newPack <- MotoGPPack.createPack(packNumber: packNumbers[i], packType: packType) | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPAdmin` --> a49cc0ee46c54bfb.MotoGPCardMetadata:56:34 | 56 | pub fun setMetadata(adminRef: &MotoGPAdmin.Admin, cardID: UInt64, name:String, description:String, imageUrl:String, data:{String: String}) { | ^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPAdmin` --> a49cc0ee46c54bfb.MotoGPCardMetadata:66:37 | 66 | pub fun removeMetadata(adminRef: &MotoGPAdmin.Admin, cardID: UInt64) { | ^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPAdmin` --> a49cc0ee46c54bfb.MotoGPCardMetadata:56:34 | 56 | pub fun setMetadata(adminRef: &MotoGPAdmin.Admin, cardID: UInt64, name:String, description:String, imageUrl:String, data:{String: String}) { | ^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPAdmin` --> a49cc0ee46c54bfb.MotoGPCardMetadata:66:37 | 66 | pub fun removeMetadata(adminRef: &MotoGPAdmin.Admin, cardID: UInt64) { | ^^^^^^^^^^^ not found in this scope error: mismatched types --> a49cc0ee46c54bfb.MotoGPPack:79:45 | 79 | let packTypeStruct: &PackType = &MotoGPPack.packTypes[_packType] as &PackType | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `MotoGPPack.PackType`, got `MotoGPPack.PackType?` error: mismatched types --> a49cc0ee46c54bfb.MotoGPPack:243:20 | 243 | return &self.ownedNFTs[id] as &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: mismatched types --> a49cc0ee46c54bfb.MotoGPPack:253:27 | 253 | let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: cannot find variable in this scope: `MotoGPPack` --> a49cc0ee46c54bfb.MotoGPAdmin:25:16 | 25 | MotoGPPack.packTypes[packType] == nil: | ^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `MotoGPPack` --> a49cc0ee46c54bfb.MotoGPAdmin:29:12 | 29 | MotoGPPack.packTypes[packType] = MotoGPPack.PackType(_packType: packType, _numberOfCards: numberOfCards) | ^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `MotoGPPack` --> a49cc0ee46c54bfb.MotoGPAdmin:29:45 | 29 | MotoGPPack.packTypes[packType] = MotoGPPack.PackType(_packType: packType, _numberOfCards: numberOfCards) | ^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `MotoGPPack` --> a49cc0ee46c54bfb.MotoGPAdmin:38:16 | 38 | MotoGPPack.packTypes[packType] != nil: | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPPack` --> a49cc0ee46c54bfb.MotoGPAdmin:47:66 | 47 | let adminPackCollection = MotoGPAdmin.account.borrow<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic}>(from: /storage/motogpPackCollection)! | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPPack` --> a49cc0ee46c54bfb.MotoGPAdmin:47:88 | 47 | let adminPackCollection = MotoGPAdmin.account.borrow<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic}>(from: /storage/motogpPackCollection)! | ^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> a49cc0ee46c54bfb.MotoGPAdmin:47:38 | 47 | let adminPackCollection = MotoGPAdmin.account.borrow<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic}>(from: /storage/motogpPackCollection)! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `MotoGPPack` --> a49cc0ee46c54bfb.MotoGPAdmin:51:31 | 51 | let newPack <- MotoGPPack.createPack(packNumber: packNumbers[i], packType: packType) | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPCardMetadata` --> a49cc0ee46c54bfb.MotoGPCard:83:35 | 83 | pub fun getCardMetadata(): MotoGPCardMetadata.Metadata? { | ^^^^^^^^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `MotoGPCounter` --> a49cc0ee46c54bfb.MotoGPCard:76:22 | 76 | self.id = MotoGPCounter.increment("MotoGPCard") | ^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPCardMetadata` --> a49cc0ee46c54bfb.MotoGPCard:83:35 | 83 | pub fun getCardMetadata(): MotoGPCardMetadata.Metadata? { | ^^^^^^^^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `MotoGPCardMetadata` --> a49cc0ee46c54bfb.MotoGPCard:84:19 | 84 | return MotoGPCardMetadata.getMetadataForCardID(cardID: self.cardID) | ^^^^^^^^^^^^^^^^^^ not found in this scope error: mismatched types --> a49cc0ee46c54bfb.MotoGPCard:209:20 | 209 | return &self.ownedNFTs[id] as &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: mismatched types --> a49cc0ee46c54bfb.MotoGPCard:219:27 | 219 | let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: mismatched types --> a49cc0ee46c54bfb.MotoGPPack:79:45 | 79 | let packTypeStruct: &PackType = &MotoGPPack.packTypes[_packType] as &PackType | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `MotoGPPack.PackType`, got `MotoGPPack.PackType?` error: mismatched types --> a49cc0ee46c54bfb.MotoGPPack:243:20 | 243 | return &self.ownedNFTs[id] as &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: mismatched types --> a49cc0ee46c54bfb.MotoGPPack:253:27 | 253 | let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: cannot find type in this scope: `MotoGPPack` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:8:24 | 8 | if acct.borrow<&MotoGPPack.Collection>(from: /storage/motogpPackCollection) == nil { | ^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:8:11 | 8 | if acct.borrow<&MotoGPPack.Collection>(from: /storage/motogpPackCollection) == nil { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `MotoGPPack` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:9:34 | 9 | let packCollection <- MotoGPPack.createEmptyCollection() | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPPack` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:11:23 | 11 | acct.link<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic, MotoGPPack.IPackCollectionAdminAccessible}>(/public/motogpPackCollection, target: /storage/motogpPackCollection) | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPPack` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:11:45 | 11 | acct.link<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic, MotoGPPack.IPackCollectionAdminAccessible}>(/public/motogpPackCollection, target: /storage/motogpPackCollection) | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPPack` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:11:79 | 11 | acct.link<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic, MotoGPPack.IPackCollectionAdminAccessible}>(/public/motogpPackCollection, target: /storage/motogpPackCollection) | ^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:11:12 | 11 | acct.link<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic, MotoGPPack.IPackCollectionAdminAccessible}>(/public/motogpPackCollection, target: /storage/motogpPackCollection) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `MotoGPPack` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:13:35 | 13 | if acct.getCapability<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic, MotoGPPack.IPackCollectionAdminAccessible}>(/public/motogpPackCollection).borrow() == nil { | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPPack` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:13:57 | 13 | if acct.getCapability<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic, MotoGPPack.IPackCollectionAdminAccessible}>(/public/motogpPackCollection).borrow() == nil { | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPPack` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:13:91 | 13 | if acct.getCapability<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic, MotoGPPack.IPackCollectionAdminAccessible}>(/public/motogpPackCollection).borrow() == nil { | ^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:13:15 | 13 | if acct.getCapability<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic, MotoGPPack.IPackCollectionAdminAccessible}>(/public/motogpPackCollection).borrow() == nil { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `MotoGPPack` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:15:27 | 15 | acct.link<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic, MotoGPPack.IPackCollectionAdminAccessible}>(/public/motogpPackCollection, target: /storage/motogpPackCollection) | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPPack` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:15:49 | 15 | acct.link<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic, MotoGPPack.IPackCollectionAdminAccessible}>(/public/motogpPackCollection, target: /storage/motogpPackCollection) | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPPack` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:15:83 | 15 | acct.link<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic, MotoGPPack.IPackCollectionAdminAccessible}>(/public/motogpPackCollection, target: /storage/motogpPackCollection) | ^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:15:16 | 15 | acct.link<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic, MotoGPPack.IPackCollectionAdminAccessible}>(/public/motogpPackCollection, target: /storage/motogpPackCollection) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `MotoGPCard` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:19:24 | 19 | if acct.borrow<&MotoGPCard.Collection>(from: /storage/motogpCardCollection) == nil { | ^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:19:11 | 19 | if acct.borrow<&MotoGPCard.Collection>(from: /storage/motogpCardCollection) == nil { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `MotoGPCard` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:20:34 | 20 | let cardCollection <- MotoGPCard.createEmptyCollection() | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPCard` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:22:23 | 22 | acct.link<&MotoGPCard.Collection{MotoGPCard.ICardCollectionPublic}>(/public/motogpCardCollection, target: /storage/motogpCardCollection) | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPCard` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:22:45 | 22 | acct.link<&MotoGPCard.Collection{MotoGPCard.ICardCollectionPublic}>(/public/motogpCardCollection, target: /storage/motogpCardCollection) | ^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:22:12 | 22 | acct.link<&MotoGPCard.Collection{MotoGPCard.ICardCollectionPublic}>(/public/motogpCardCollection, target: /storage/motogpCardCollection) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `MotoGPCard` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:24:35 | 24 | if acct.getCapability<&MotoGPCard.Collection{MotoGPCard.ICardCollectionPublic}>(/public/motogpCardCollection).borrow() == nil { | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPCard` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:24:57 | 24 | if acct.getCapability<&MotoGPCard.Collection{MotoGPCard.ICardCollectionPublic}>(/public/motogpCardCollection).borrow() == nil { | ^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:24:15 | 24 | if acct.getCapability<&MotoGPCard.Collection{MotoGPCard.ICardCollectionPublic}>(/public/motogpCardCollection).borrow() == nil { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `MotoGPCard` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:26:27 | 26 | acct.link<&MotoGPCard.Collection{MotoGPCard.ICardCollectionPublic}>(/public/motogpCardCollection, target: /storage/motogpCardCollection) | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPCard` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:26:49 | 26 | acct.link<&MotoGPCard.Collection{MotoGPCard.ICardCollectionPublic}>(/public/motogpCardCollection, target: /storage/motogpCardCollection) | ^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 03e30778590612331cc7f5c5bd72108db4d92e1f1596bf75fa7bc39fddbf1042:26:16 | 26 | acct.link<&MotoGPCard.Collection{MotoGPCard.ICardCollectionPublic}>(/public/motogpCardCollection, target: /storage/motogpCardCollection) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^