Whoops! 😨 Something unexpected happened...
[Error Code: 1101] error caused by: 1 error occurred:
* transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed:
error: cannot find type in this scope: `AuthAccount`
--> a7c3e72586e953624857efa30dc06682f0092ff31f0c8ff475ef6fd25da9683d:13:16
|
13 | prepare(signer: AuthAccount) {
| ^^^^^^^^^^^ not found in this scope
error: value of type `&Account` has no member `getCapability`
--> a7c3e72586e953624857efa30dc06682f0092ff31f0c8ff475ef6fd25da9683d:28:5
|
28 | .getCapability(/public/cadenceExampleNFTCollection)
| ^^^^^^^^^^^^^ unknown member
error: value of type `&Account` has no member `getCapability`
--> a7c3e72586e953624857efa30dc06682f0092ff31f0c8ff475ef6fd25da9683d:32:34
|
32 | let collectionCap = recipient.getCapability<&{Domains.CollectionPublic}>(Domains.CollectionPublicPath)
| ^^^^^^^^^^^^^ unknown member
error: value of type `&Domains` has no member `CollectionPublicPath`
--> a7c3e72586e953624857efa30dc06682f0092ff31f0c8ff475ef6fd25da9683d:32:85
|
32 | let collectionCap = recipient.getCapability<&{Domains.CollectionPublic}>(Domains.CollectionPublicPath)
| ^^^^^^^^^^^^^^^^^^^^ unknown member
error: cannot find type in this scope: `Domains.DomainPublic`
--> a7c3e72586e953624857efa30dc06682f0092ff31f0c8ff475ef6fd25da9683d:34:25
|
34 | var defaultDomain: &{Domains.DomainPublic}? = nil
| ^^^^^^^^^^^^^^^^^^^^ not found in this scope
error: ambiguous intersection type
--> a7c3e72586e953624857efa30dc06682f0092ff31f0c8ff475ef6fd25da9683d:34:24
|
34 | var defaultDomain: &{Domains.DomainPublic}? = nil
| ^^^^^^^^^^^^^^^^^^^^^^
error: too few arguments
--> a7c3e72586e953624857efa30dc06682f0092ff31f0c8ff475ef6fd25da9683d:56:26
|
56 | let collection <- ExampleNFT.createEmptyCollection()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected at least 1, got 0