[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` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d:8:24 | 8 | if acct.borrow<&MotoGPPack.Collection>(from: /storage/motogpPackCollection) == nil { | ^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d:8:11 | 8 | if acct.borrow<&MotoGPPack.Collection>(from: /storage/motogpPackCollection) == nil { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `MotoGPPack` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d:9:34 | 9 | let packCollection <- MotoGPPack.createEmptyCollection() | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPPack` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d: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` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d: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` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d: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` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d:11:12 | 11 | acct.link<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic, MotoGPPack.IPackCollectionAdminAccessible}>(/public/motogpPackCollection, target: /storage/motogpPackCollection) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `MotoGPPack` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d: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` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d: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` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d: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` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d:13:15 | 13 | if acct.getCapability<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic, MotoGPPack.IPackCollectionAdminAccessible}>(/public/motogpPackCollection).borrow() == nil { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `MotoGPPack` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d: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` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d: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` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d: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` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d:15:16 | 15 | acct.link<&MotoGPPack.Collection{MotoGPPack.IPackCollectionPublic, MotoGPPack.IPackCollectionAdminAccessible}>(/public/motogpPackCollection, target: /storage/motogpPackCollection) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `MotoGPCard` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d:19:24 | 19 | if acct.borrow<&MotoGPCard.Collection>(from: /storage/motogpCardCollection) == nil { | ^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d:19:11 | 19 | if acct.borrow<&MotoGPCard.Collection>(from: /storage/motogpCardCollection) == nil { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `MotoGPCard` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d:20:34 | 20 | let cardCollection <- MotoGPCard.createEmptyCollection() | ^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MotoGPCard` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d: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` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d: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` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d:22:12 | 22 | acct.link<&MotoGPCard.Collection{MotoGPCard.ICardCollectionPublic}>(/public/motogpCardCollection, target: /storage/motogpCardCollection) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `MotoGPCard` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d: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` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d: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` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d:24:15 | 24 | if acct.getCapability<&MotoGPCard.Collection{MotoGPCard.ICardCollectionPublic}>(/public/motogpCardCollection).borrow() == nil { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `MotoGPCard` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d: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` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d: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` --> 9387e9afd90584109d9917547357fbdcfbb02ebb92090f6996d72d4dd8ccd78d:26:16 | 26 | acct.link<&MotoGPCard.Collection{MotoGPCard.ICardCollectionPublic}>(/public/motogpCardCollection, target: /storage/motogpCardCollection) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^