CODE_ERROR
There is an error in the cadence code of this transaction.
[Error Code: 1101] cadence runtime error Execution failed: error: cannot deploy invalid contract --> 44393b5a450417ffdfe2af32e9eda3081fb4377722685d4b8ea100b8ee288035: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 scope error: mismatched types --> 7620acf6d7f2468a.Bl0xPack:466:11 | 466 | return &self.ownedNFTs[id] as &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: mismatched types --> 7620acf6d7f2468a.Bl0xPack:476:15 | 476 | let ref = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: mismatched types --> 7620acf6d7f2468a.Bl0xPack:484:14 | 484 | let nft = &self.ownedNFTs[id] as auth &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^^^ expected `NonFungibleToken.NFT`, got `NonFungibleToken.NFT?` error: cannot find type in this scope: `Bl0xPack` --> 7620acf6d7f2468a.Admin:96:55 | 96 | pub fun registerPackMetadata(typeId:UInt64, metadata:Bl0xPack.Metadata) { | ^^^^^^^^ not found in this scope error: cannot find type in this scope: `Bl0xPack` --> 7620acf6d7f2468a.Admin:96:55 | 96 | pub fun registerPackMetadata(typeId:UInt64, metadata:Bl0xPack.Metadata) { | ^^^^^^^^ not found in this scope error: cannot find variable in this scope: `Bl0xPack` --> 7620acf6d7f2468a.Admin:100:3 | 100 | Bl0xPack.registerMetadata(typeId: typeId, metadata: metadata) | ^^^^^^^^ not found in this scope error: cannot find variable in this scope: `Bl0xPack` --> 7620acf6d7f2468a.Admin:109:75 | 109 | let recipient=Admin.account.getCapability<&{NonFungibleToken.Receiver}>(Bl0xPack.CollectionPublicPath).borrow()! | ^^^^^^^^ not found in this scope error: cannot find variable in this scope: `Bl0xPack` --> 7620acf6d7f2468a.Admin:111:4 | 111 | Bl0xPack.mintNFT(recipient:recipient, typeId: typeId, hash: hash) | ^^^^^^^^ not found in this scope error: cannot find type in this scope: `Bl0xPack` --> 7620acf6d7f2468a.Admin:120:34 | 120 | let cap= Admin.account.borrow<&Bl0xPack.Collection>(from: Bl0xPack.DLQCollectionStoragePath)! | ^^^^^^^^ not found in this scope error: cannot find variable in this scope: `Bl0xPack` --> 7620acf6d7f2468a.Admin:120:61 | 120 | let cap= Admin.account.borrow<&Bl0xPack.Collection>(from: Bl0xPack.DLQCollectionStoragePath)! | ^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 7620acf6d7f2468a.Admin:120:12 | 120 | let cap= Admin.account.borrow<&Bl0xPack.Collection>(from: Bl0xPack.DLQCollectionStoragePath)! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `Bl0xPack` --> 7620acf6d7f2468a.Admin:128:3 | 128 | Bl0xPack.fulfill(packId: packId, rewardIds: rewardIds, salt: salt) | ^^^^^^^^ not found in this scopeArguments:
name:
Admin
code:
696d706f72742046756e...7468290a097d0a0a7d0a
Loading...