[Error Code: 1101] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: error: cannot deploy invalid contract --> 2beb128b5269722dd50287083460aa9f10a44190bd551c2fdca3c43f951c87fb:4:3 | 4 | signer.contracts.add(name: name, code: code.utf8 ) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: value of type `auth(Storage, Contracts, Keys, Inbox, Capabilities) &Account` has no member `save` --> cbc6dbbfcc60e595.FlowUtilityToken:262:21 | 262 | self.account.save(<-tokenVault, to: /storage/flowUtilityTokenVault) | ^^^^ unknown member error: cannot find type in this scope: `FungibleTokenMetadataViews` --> cbc6dbbfcc60e595.FlowUtilityToken:211:17 | 211 | Type<FungibleTokenMetadataViews.FTDisplay>(), | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> cbc6dbbfcc60e595.FlowUtilityToken:211:12 | 211 | Type<FungibleTokenMetadataViews.FTDisplay>(), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `FungibleTokenMetadataViews` --> cbc6dbbfcc60e595.FlowUtilityToken:212:17 | 212 | Type<FungibleTokenMetadataViews.FTVaultData>() | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> cbc6dbbfcc60e595.FlowUtilityToken:212:12 | 212 | Type<FungibleTokenMetadataViews.FTVaultData>() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find type in this scope: `FungibleTokenMetadataViews` --> cbc6dbbfcc60e595.FlowUtilityToken:218:22 | 218 | case Type<FungibleTokenMetadataViews.FTDisplay>(): | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> cbc6dbbfcc60e595.FlowUtilityToken:218:17 | 218 | case Type<FungibleTokenMetadataViews.FTDisplay>(): | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `MetadataViews` --> cbc6dbbfcc60e595.FlowUtilityToken:219:28 | 219 | let media = MetadataViews.Media( | ^^^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `MetadataViews` --> cbc6dbbfcc60e595.FlowUtilityToken:220:30 | 220 | file: MetadataViews.HTTPFile( | ^^^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `MetadataViews` --> cbc6dbbfcc60e595.FlowUtilityToken:225:29 | 225 | let medias = MetadataViews.Medias([media]) | ^^^^^^^^^^^^^ not found in this scope error: cannot infer type from array literal: requires an explicit type annotation --> cbc6dbbfcc60e595.FlowUtilityToken:225:50 | 225 | let medias = MetadataViews.Medias([media]) | ^ error: cannot find variable in this scope: `FungibleTokenMetadataViews` --> cbc6dbbfcc60e595.FlowUtilityToken:226:23 | 226 | return FungibleTokenMetadataViews.FTDisplay( | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `MetadataViews` --> cbc6dbbfcc60e595.FlowUtilityToken:230:33 | 230 | externalURL: MetadataViews.ExternalURL("https://flow.com/"), | ^^^^^^^^^^^^^ not found in this scope error: cannot find variable in this scope: `MetadataViews` --> cbc6dbbfcc60e595.FlowUtilityToken:233:35 | 233 | "twitter": MetadataViews.ExternalURL("https://twitter.com/flow_blockchain") | ^^^^^^^^^^^^^ not found in this scope error: cannot infer type from dictionary literal: requires an explicit type annotation --> cbc6dbbfcc60e595.FlowUtilityToken:232:29 | 232 | socials: { | ^ error: cannot find type in this scope: `FungibleTokenMetadataViews` --> cbc6dbbfcc60e595.FlowUtilityToken:236:22 | 236 | case Type<FungibleTokenMetadataViews.FTVaultData>(): | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope error: cannot infer type parameter: `T` --> cbc6dbbfcc60e595.FlowUtilityToken:236:17 | 236 | case Type<FungibleTokenMetadataViews.FTVaultData>(): | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: cannot find variable in this scope: `FungibleTokenMetadataViews` --> cbc6dbbfcc60e595.FlowUtilityToken:237:23 | 237 | return FungibleTokenMetadataViews.FTVaultData( | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
Loading...
Loading...
Happy diving into the flow Remember to upgrade your contracts to 1.0!