Whoops! 😨 Something unexpected happened...
[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
--> 5c1dab4ee5475985028d41e613946d10db2f4bfff04bd948aa87995e172c9c15: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:263:21
|
263 | self.account.save(<-tokenVault, to: /storage/flowUtilityTokenVault)
| ^^^^ unknown member
error: cannot find variable in this scope: `MetadataViews`
--> cbc6dbbfcc60e595.FlowUtilityToken:220:28
|
220 | let media = MetadataViews.Media(
| ^^^^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `MetadataViews`
--> cbc6dbbfcc60e595.FlowUtilityToken:221:30
|
221 | file: MetadataViews.HTTPFile(
| ^^^^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `MetadataViews`
--> cbc6dbbfcc60e595.FlowUtilityToken:226:29
|
226 | let medias = MetadataViews.Medias([media])
| ^^^^^^^^^^^^^ not found in this scope
error: cannot infer type from array literal: requires an explicit type annotation
--> cbc6dbbfcc60e595.FlowUtilityToken:226:50
|
226 | let medias = MetadataViews.Medias([media])
| ^
error: cannot find variable in this scope: `MetadataViews`
--> cbc6dbbfcc60e595.FlowUtilityToken:231:33
|
231 | externalURL: MetadataViews.ExternalURL("https://flow.com/"),
| ^^^^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `MetadataViews`
--> cbc6dbbfcc60e595.FlowUtilityToken:234:35
|
234 | "twitter": MetadataViews.ExternalURL("https://twitter.com/flow_blockchain")
| ^^^^^^^^^^^^^ not found in this scope