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
--> 462fc02f0262444ad4d3e547b7181339fad94cb8ca206d7510cc0badb1a2695e:4:3
|
4 | signer.contracts.add(name: name, code: code.utf8 )
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot find type in this scope: `MetadataViews.ResolverCollection`
--> 30a71a4767f0e14f.FDNZ:28:29
|
28 | var meta = obj as? &{MetadataViews.ResolverCollection}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
error: ambiguous intersection type
--> 30a71a4767f0e14f.FDNZ:28:28
|
28 | var meta = obj as? &{MetadataViews.ResolverCollection}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot find type in this scope: `MetadataViews.ResolverCollection`
--> 30a71a4767f0e14f.FDNZ:51:29
|
51 | var meta = obj as? &{MetadataViews.ResolverCollection}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
error: ambiguous intersection type
--> 30a71a4767f0e14f.FDNZ:51:28
|
51 | var meta = obj as? &{MetadataViews.ResolverCollection}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: value of type `auth(SaveValue, LoadValue, CopyValue, BorrowValue, Storage) &Account.Storage` has no member `forEachPrivate`
--> 30a71a4767f0e14f.FDNZ:97:28
|
97 | account.storage.forEachPrivate(fun (path: PrivatePath, type: Type): Bool {
| ^^^^^^^^^^^^^^ unknown member