[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 --> 3263219b62866d62f0220689a6e9af73516325c7ac5f39ca6704981e124ab86a: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 error: invalid use of interface as type --> cbc6dbbfcc60e595.FlowUtilityToken:86:69 | 86 | access(FungibleToken.Withdraw) fun withdraw(amount: UFix64): @FungibleToken.Vault { | ^^^^^^^^^^^^^^^^^^^^ got `FungibleToken.Vault`; consider using `{FungibleToken.Vault}` error: resource `FlowUtilityToken.Vault` does not conform to resource interface `FungibleToken.Vault` --> cbc6dbbfcc60e595.FlowUtilityToken:41:25 | 41 | access(all) resource Vault: FungibleToken.Vault { | ^ ... | 86 | access(FungibleToken.Withdraw) fun withdraw(amount: UFix64): @FungibleToken.Vault { | -------- mismatch here error: resource `FlowUtilityToken.Vault` does not conform to resource interface `FungibleToken.Vault` --> cbc6dbbfcc60e595.FlowUtilityToken:41:25 | 41 | access(all) resource Vault: FungibleToken.Vault { | ^ ... | 86 | access(FungibleToken.Withdraw) fun withdraw(amount: UFix64): @FungibleToken.Vault { | -------- mismatch here
Happy diving into the flow Remember to upgrade your contracts to 1.0!