Error
Whoops! 😨 Something unexpected happened...
[Error Code: 1101] cadence runtime error Execution failed: error: cannot deploy invalid contract --> 29787cf912fba278bad55491b2d28cf1b74dc3b124cd66ddc88d73f8a63d7135:3:2 | 3 | signer.contracts.update__experimental(name: name, code: code.decodeHex()) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: mismatched types --> 2d4c3caffbeab845.FLOAT:323:20 | 323 | return &self.ownedNFTs[id] as &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: mismatched types --> 2d4c3caffbeab845.FLOAT:328:27 | 328 | let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: mismatched types --> 2d4c3caffbeab845.FLOAT:335:28 | 335 | let tokenRef = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: mismatched types --> 2d4c3caffbeab845.FLOAT:626:36 | 626 | let typedModules = &self.verifiers[identifier] as &[{IVerifier}] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `[AnyStruct{FLOAT.IVerifier}]`, got `[AnyStruct{FLOAT.IVerifier}]?` error: mismatched types --> 2d4c3caffbeab845.FLOAT:853:32 | 853 | let groupRef = &self.groups[groupName] as &Group | ^^^^^^^^^^^^^^^^^^^^^^ expected `FLOAT.Group`, got `FLOAT.Group?` error: mismatched types --> 2d4c3caffbeab845.FLOAT:872:27 | 872 | let ref = &self.events[eventId] as &FLOATEvent | ^^^^^^^^^^^^^^^^^^^^ expected `FLOAT.FLOATEvent`, got `FLOAT.FLOATEvent?` error: mismatched types --> 2d4c3caffbeab845.FLOAT:885:28 | 885 | let groupRef = &self.groups[groupName] as &Group | ^^^^^^^^^^^^^^^^^^^^^^ expected `FLOAT.Group`, got `FLOAT.Group?` error: mismatched types --> 2d4c3caffbeab845.FLOAT:898:28 | 898 | let groupRef = &self.groups[groupName] as &Group | ^^^^^^^^^^^^^^^^^^^^^^ expected `FLOAT.Group`, got `FLOAT.Group?` error: mismatched types --> 2d4c3caffbeab845.FLOAT:907:24 | 907 | return &self.groups[groupName] as &Group | ^^^^^^^^^^^^^^^^^^^^^^ expected `FLOAT.Group`, got `FLOAT.Group?` error: mismatched types --> 2d4c3caffbeab845.FLOAT:941:24 | 941 | return &self.events[eventId] as &FLOATEvent | ^^^^^^^^^^^^^^^^^^^^ expected `FLOAT.FLOATEvent`, got `FLOAT.FLOATEvent?` error: mismatched types --> 2d4c3caffbeab845.FLOAT:952:24 | 952 | return &self.events[eventId] as &FLOATEvent{FLOATEventPublic} | ^^^^^^^^^^^^^^^^^^^^ expected `FLOAT.FLOATEvent{FLOAT.FLOATEventPublic}`, got `FLOAT.FLOATEvent?` error: mismatched types --> 2d4c3caffbeab845.FLOAT:966:27 | 966 | let ref = &self.events[id] as &FLOATEvent | ^^^^^^^^^^^^^^^ expected `FLOAT.FLOATEvent`, got `FLOAT.FLOATEvent?` error: mismatched types --> 2d4c3caffbeab845.FLOAT:973:20 | 973 | return &self.events[id] as &{MetadataViews.Resolver} | ^^^^^^^^^^^^^^^ expected `AnyResource{MetadataViews.Resolver}`, got `FLOAT.FLOATEvent?` error: cannot find variable in this scope: `FLOAT` --> 7620acf6d7f2468a.Bl0xPack:631:45 | 631 | let float = getAccount(user).getCapability(FLOAT.FLOATCollectionPublicPath).borrow<&FLOAT.Collection{FLOAT.CollectionPublic}>() | ^^^^^ not found in this scope error: cannot find type in this scope: `FLOAT` --> 7620acf6d7f2468a.Bl0xPack:631:86 | 631 | let float = getAccount(user).getCapability(FLOAT.FLOATCollectionPublicPath).borrow<&FLOAT.Collection{FLOAT.CollectionPublic}>() | ^^^^^ not found in this scope error: cannot find type in this scope: `FLOAT` --> 7620acf6d7f2468a.Bl0xPack:631:103 | 631 | let float = getAccount(user).getCapability(FLOAT.FLOATCollectionPublicPath).borrow<&FLOAT.Collection{FLOAT.CollectionPublic}>() | ^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 7620acf6d7f2468a.Bl0xPack:631:14 | 631 | let float = getAccount(user).getCapability(FLOAT.FLOATCollectionPublicPath).borrow<&FLOAT.Collection{FLOAT.CollectionPublic}>() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `FLOAT` --> 7620acf6d7f2468a.Bl0xPack:641:13 | 641 | let nft: &FLOAT.NFT = floatsCollection.borrowFLOAT(id: id)! | ^^^^^ not found in this scopeArguments:
name:
Bl0xPack
code:
696d706f7274204e6f6e...6428290a0a097d0a7d0a
Loading...