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 --> cfbf6b83adfb9d8442e563c4966557b33c2329010ff31ab97a34be60c6cd7637:3:2 | 3 | signer.contracts.update__experimental(name: name, code: code.decodeHex()) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: [Error Code: 1054] location (../core-contracts/NonFungibleToken.cdc) is not a valid location: expecting an AddressLocation, but other location types are passed --> ../core-contracts/NonFungibleToken.cdc error: [Error Code: 1054] location (../core-contracts/MetadataViews.cdc) is not a valid location: expecting an AddressLocation, but other location types are passed --> ../core-contracts/MetadataViews.cdc error: [Error Code: 1054] location (../sharedaccount/GrantedAccountAccess.cdc) is not a valid location: expecting an AddressLocation, but other location types are passed --> ../sharedaccount/GrantedAccountAccess.cdc error: [Error Code: 1054] location (../core-contracts/FungibleToken.cdc) is not a valid location: expecting an AddressLocation, but other location types are passed --> ../core-contracts/FungibleToken.cdc error: [Error Code: 1054] location (../core-contracts/FlowToken.cdc) is not a valid location: expecting an AddressLocation, but other location types are passed --> ../core-contracts/FlowToken.cdc error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:41:20 | 41 | pub contract FLOAT: NonFungibleToken { | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:109:22 | 109 | pub resource NFT: NonFungibleToken.INFT, MetadataViews.Resolver { | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MetadataViews` --> 2d4c3caffbeab845.FLOAT:109:45 | 109 | pub resource NFT: NonFungibleToken.INFT, MetadataViews.Resolver { | ^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:227:29 | 227 | pub resource Collection: NonFungibleToken.Provider, NonFungibleToken.Receiver, NonFungibleToken.CollectionPublic, MetadataViews.ResolverCollection, CollectionPublic { | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:227:56 | 227 | pub resource Collection: NonFungibleToken.Provider, NonFungibleToken.Receiver, NonFungibleToken.CollectionPublic, MetadataViews.ResolverCollection, CollectionPublic { | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:227:83 | 227 | pub resource Collection: NonFungibleToken.Provider, NonFungibleToken.Receiver, NonFungibleToken.CollectionPublic, MetadataViews.ResolverCollection, CollectionPublic { | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MetadataViews` --> 2d4c3caffbeab845.FLOAT:227:118 | 227 | pub resource Collection: NonFungibleToken.Provider, NonFungibleToken.Receiver, NonFungibleToken.CollectionPublic, MetadataViews.ResolverCollection, CollectionPublic { | ^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MetadataViews` --> 2d4c3caffbeab845.FLOAT:407:47 | 407 | pub resource FLOATEvent: FLOATEventPublic, MetadataViews.Resolver { | ^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MetadataViews` --> 2d4c3caffbeab845.FLOAT:815:49 | 815 | pub resource FLOATEvents: FLOATEventsPublic, MetadataViews.ResolverCollection { | ^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:216:40 | 216 | pub fun borrowNFT(id: UInt64): &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MetadataViews` --> 2d4c3caffbeab845.FLOAT:218:50 | 218 | pub fun borrowViewResolver(id: UInt64): &{MetadataViews.Resolver} | ^^^^^^^^^^^^^ not found in this scope error: ambiguous restricted type --> 2d4c3caffbeab845.FLOAT:218:49 | 218 | pub fun borrowViewResolver(id: UInt64): &{MetadataViews.Resolver} | ^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:219:32 | 219 | pub fun deposit(token: @NonFungibleToken.NFT) | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `FungibleToken` --> 2d4c3caffbeab845.FLOAT:391:88 | 391 | pub fun purchase(recipient: &Collection, params: {String: AnyStruct}, payment: @FungibleToken.Vault) | ^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MetadataViews` --> 2d4c3caffbeab845.FLOAT:130:70 | 130 | pub let eventsCap: Capability<&FLOATEvents{FLOATEventsPublic, MetadataViews.ResolverCollection}> | ^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:229:37 | 229 | pub var ownedNFTs: @{UInt64: NonFungibleToken.NFT} | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:237:32 | 237 | pub fun deposit(token: @NonFungibleToken.NFT) { | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:261:47 | 261 | pub fun withdraw(withdrawID: UInt64): @NonFungibleToken.NFT { | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:338:40 | 338 | pub fun borrowNFT(id: UInt64): &NonFungibleToken.NFT { | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MetadataViews` --> 2d4c3caffbeab845.FLOAT:350:50 | 350 | pub fun borrowViewResolver(id: UInt64): &{MetadataViews.Resolver} { | ^^^^^^^^^^^^^ not found in this scope error: ambiguous restricted type --> 2d4c3caffbeab845.FLOAT:350:49 | 350 | pub fun borrowViewResolver(id: UInt64): &{MetadataViews.Resolver} { | ^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:580:51 | 580 | pub fun batchMint(recipients: [&Collection{NonFungibleToken.CollectionPublic}]) { | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:597:44 | 597 | pub fun mint(recipient: &Collection{NonFungibleToken.CollectionPublic}): UInt64 { | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `FungibleToken` --> 2d4c3caffbeab845.FLOAT:686:88 | 686 | pub fun purchase(recipient: &Collection, params: {String: AnyStruct}, payment: @FungibleToken.Vault) { | ^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MetadataViews` --> 2d4c3caffbeab845.FLOAT:979:50 | 979 | pub fun borrowViewResolver(id: UInt64): &{MetadataViews.Resolver} { | ^^^^^^^^^^^^^ not found in this scope error: ambiguous restricted type --> 2d4c3caffbeab845.FLOAT:979:49 | 979 | pub fun borrowViewResolver(id: UInt64): &{MetadataViews.Resolver} { | ^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:216:40 | 216 | pub fun borrowNFT(id: UInt64): &NonFungibleToken.NFT | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MetadataViews` --> 2d4c3caffbeab845.FLOAT:218:50 | 218 | pub fun borrowViewResolver(id: UInt64): &{MetadataViews.Resolver} | ^^^^^^^^^^^^^ not found in this scope error: ambiguous restricted type --> 2d4c3caffbeab845.FLOAT:218:49 | 218 | pub fun borrowViewResolver(id: UInt64): &{MetadataViews.Resolver} | ^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:219:32 | 219 | pub fun deposit(token: @NonFungibleToken.NFT) | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `FungibleToken` --> 2d4c3caffbeab845.FLOAT:391:88 | 391 | pub fun purchase(recipient: &Collection, params: {String: AnyStruct}, payment: @FungibleToken.Vault) | ^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MetadataViews` --> 2d4c3caffbeab845.FLOAT:182:63 | 182 | .getCapability<&FLOATEvents{FLOATEventsPublic, MetadataViews.ResolverCollection}>(FLOAT.FLOATEventsPublicPath) | ^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MetadataViews` --> 2d4c3caffbeab845.FLOAT:144:21 | 144 | Type<MetadataViews.Display>(), | ^^^^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 2d4c3caffbeab845.FLOAT:144:16 | 144 | Type<MetadataViews.Display>(), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `MetadataViews` --> 2d4c3caffbeab845.FLOAT:152:26 | 152 | case Type<MetadataViews.Display>(): | ^^^^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 2d4c3caffbeab845.FLOAT:152:21 | 152 | case Type<MetadataViews.Display>(): | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `MetadataViews` --> 2d4c3caffbeab845.FLOAT:153:27 | 153 | return MetadataViews.Display( | ^^^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `MetadataViews` --> 2d4c3caffbeab845.FLOAT:156:35 | 156 | thumbnail: MetadataViews.IPFSFile(cid: self.eventImage, path: nil) | ^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:237:32 | 237 | pub fun deposit(token: @NonFungibleToken.NFT) { | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:261:47 | 261 | pub fun withdraw(withdrawID: UInt64): @NonFungibleToken.NFT { | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:338:40 | 338 | pub fun borrowNFT(id: UInt64): &NonFungibleToken.NFT { | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:339:44 | 339 | return (&self.ownedNFTs[id] as &NonFungibleToken.NFT?)! | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:344:56 | 344 | let ref = (&self.ownedNFTs[id] as auth &NonFungibleToken.NFT?)! | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MetadataViews` --> 2d4c3caffbeab845.FLOAT:350:50 | 350 | pub fun borrowViewResolver(id: UInt64): &{MetadataViews.Resolver} { | ^^^^^^^^^^^^^ not found in this scope error: ambiguous restricted type --> 2d4c3caffbeab845.FLOAT:350:49 | 350 | pub fun borrowViewResolver(id: UInt64): &{MetadataViews.Resolver} { | ^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:351:57 | 351 | let tokenRef = (&self.ownedNFTs[id] as auth &NonFungibleToken.NFT?)! | ^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `MetadataViews` --> 2d4c3caffbeab845.FLOAT:353:31 | 353 | return nftRef as &{MetadataViews.Resolver} | ^^^^^^^^^^^^^ not found in this scope error: ambiguous restricted type --> 2d4c3caffbeab845.FLOAT:353:30 | 353 | return nftRef as &{MetadataViews.Resolver} | ^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `MetadataViews` --> 2d4c3caffbeab845.FLOAT:552:21 | 552 | Type<MetadataViews.Display>() | ^^^^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 2d4c3caffbeab845.FLOAT:552:16 | 552 | Type<MetadataViews.Display>() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `MetadataViews` --> 2d4c3caffbeab845.FLOAT:565:26 | 565 | case Type<MetadataViews.Display>(): | ^^^^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 2d4c3caffbeab845.FLOAT:565:21 | 565 | case Type<MetadataViews.Display>(): | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `MetadataViews` --> 2d4c3caffbeab845.FLOAT:566:27 | 566 | return MetadataViews.Display( | ^^^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `MetadataViews` --> 2d4c3caffbeab845.FLOAT:569:35 | 569 | thumbnail: MetadataViews.IPFSFile(cid: self.image, path: nil) | ^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:580:51 | 580 | pub fun batchMint(recipients: [&Collection{NonFungibleToken.CollectionPublic}]) { | ^^^^^^^^^^^^^^^^ not found in this scope error: member of restricted type is not accessible: owner --> 2d4c3caffbeab845.FLOAT:582:32 | 582 | if self.claimed[recipient.owner!.address] == nil { | ^^^^^^^^^ error: cannot find type in this scope: `NonFungibleToken` --> 2d4c3caffbeab845.FLOAT:597:44 | 597 | pub fun mint(recipient: &Collection{NonFungibleToken.CollectionPublic}): UInt64 { | ^^^^^^^^^^^^^^^^ not found in this scope error: member of restricted type is not accessible: owner --> 2d4c3caffbeab845.FLOAT:599:29 | 599 | self.claimed[recipient.owner!.address] == nil: | ^^^^^^^^^ error: member of restricted type is not accessible: owner --> 2d4c3caffbeab845.FLOAT:602:41 | 602 | let recipientAddr: Address = recipient.owner!.address | ^^^^^^^^^ error: member of restricted type is not accessible: deposit --> 2d4c3caffbeab845.FLOAT:630:12 | 630 | recipient.deposit(token: <- token) | ^^^^^^^^^ error: cannot find type in this scope: `FungibleToken` --> 2d4c3caffbeab845.FLOAT:686:88 | 686 | pub fun purchase(recipient: &Collection, params: {String: AnyStruct}, payment: @FungibleToken.Vault) { | ^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `FungibleToken` --> 2d4c3caffbeab845.FLOAT:705:46 | 705 | .borrow<&{FungibleToken.Receiver}>() | ^^^^^^^^^^^^^ not found in this scope error: ambiguous restricted type --> 2d4c3caffbeab845.FLOAT:705:45 | 705 | .borrow<&{FungibleToken.Receiver}>() | ^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot infer type parameter: `T` --> 2d4c3caffbeab845.FLOAT:704:33 | 704 | let EventHostVault = getAccount(self.host).getCapability(tokenInfo.path) | ^ error: cannot find type in this scope: `FungibleToken` --> 2d4c3caffbeab845.FLOAT:714:46 | 714 | .borrow<&{FungibleToken.Receiver}>() | ^^^^^^^^^^^^^ not found in this scope error: ambiguous restricted type --> 2d4c3caffbeab845.FLOAT:714:45 | 714 | .borrow<&{FungibleToken.Receiver}>() | ^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot infer type parameter: `T` --> 2d4c3caffbeab845.FLOAT:713:35 | 713 | let EmeraldCityVault = getAccount(emeraldCityTreasury).getCapability(tokenInfo.path) | ^ error: cannot find variable in this scope: `GrantedAccountAccess` --> 2d4c3caffbeab845.FLOAT:934:64 | 934 | let sharedInfo = getAccount(fromHost).getCapability(GrantedAccountAccess.InfoPublicPath) | ^^^^^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `GrantedAccountAccess` --> 2d4c3caffbeab845.FLOAT:935:41 | 935 | .borrow<&GrantedAccountAccess.Info{GrantedAccountAccess.InfoPublic}>() | ^^^^^^^^^^^^^^^^^^^^ not found in this scope error: cannot find type in this scope: `GrantedAccountAccess` --> 2d4c3caffbeab845.FLOAT:935:67 | 935 | .borrow<&GrantedAccountAccess.Info{GrantedAccountAccess.InfoPublic}>() | ^^^^^^^^^^^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> 2d4c3caffbeab845.FLOAT:934:29 | 934 | let sharedInfo = getAccount(fromHost).getCapability(GrantedAccountAccess.InfoPublicPath) | ^ error: cannot find type in this scope: `MetadataViews` --> 2d4c3caffbeab845.FLOAT:979:50 | 979 | pub fun borrowViewResolver(id: UInt64): &{MetadataViews.Resolver} { | ^^^^^^^^^^^^^ not found in this scope error: ambiguous restricted type --> 2d4c3caffbeab845.FLOAT:979:49 | 979 | pub fun borrowViewResolver(id: UInt64): &{MetadataViews.Resolver} { | ^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `MetadataViews` --> 2d4c3caffbeab845.FLOAT:980:42 | 980 | return (&self.events[id] as &{MetadataViews.Resolver}?)! | ^^^^^^^^^^^^^ not found in this scope error: ambiguous restricted type --> 2d4c3caffbeab845.FLOAT:980:41 | 980 | return (&self.events[id] as &{MetadataViews.Resolver}?)! | ^^^^^^^^^^^^^^^^^^^^^^^^Arguments:
name:
FLOAT
code:
2f2f204d414445204259...0d0a202020207d0d0a7d
Loading...