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`
--> eed569d5e9463558c6bdbd19f3c92bd16b2d784bfd5b88df62eff17ade02f9c5:13:16
|
13 | prepare(signer: AuthAccount) {
| ^^^^^^^^^^^ not found in this scope
error: value of type `&Account` has no member `getCapability`
--> eed569d5e9463558c6bdbd19f3c92bd16b2d784bfd5b88df62eff17ade02f9c5:28:5
|
28 | .getCapability(/public/MonsterMakerCollection)
| ^^^^^^^^^^^^^ unknown member
error: value of type `&Account` has no member `getCapability`
--> eed569d5e9463558c6bdbd19f3c92bd16b2d784bfd5b88df62eff17ade02f9c5:32:34
|
32 | let collectionCap = recipient.getCapability<&{Domains.CollectionPublic}>(Domains.CollectionPublicPath)
| ^^^^^^^^^^^^^ unknown member
error: value of type `&Domains` has no member `CollectionPublicPath`
--> eed569d5e9463558c6bdbd19f3c92bd16b2d784bfd5b88df62eff17ade02f9c5:32:85
|
32 | let collectionCap = recipient.getCapability<&{Domains.CollectionPublic}>(Domains.CollectionPublicPath)
| ^^^^^^^^^^^^^^^^^^^^ unknown member
error: cannot find type in this scope: `Domains.DomainPublic`
--> eed569d5e9463558c6bdbd19f3c92bd16b2d784bfd5b88df62eff17ade02f9c5:34:25
|
34 | var defaultDomain: &{Domains.DomainPublic}? = nil
| ^^^^^^^^^^^^^^^^^^^^ not found in this scope
error: ambiguous intersection type
--> eed569d5e9463558c6bdbd19f3c92bd16b2d784bfd5b88df62eff17ade02f9c5:34:24
|
34 | var defaultDomain: &{Domains.DomainPublic}? = nil
| ^^^^^^^^^^^^^^^^^^^^^^
error: too few arguments
--> eed569d5e9463558c6bdbd19f3c92bd16b2d784bfd5b88df62eff17ade02f9c5:56:26
|
56 | let collection <- MonsterMaker.createEmptyCollection()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected at least 1, got 0