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`
--> 0c017b53ee09a1b02df30f16dc52854b80b450847799c09b108ea134d8863d42:8:20
|
8 | prepare(signer: AuthAccount) {
| ^^^^^^^^^^^ not found in this scope
error: value of type `&Frames` has no member `CollectionStoragePath`
--> 0c017b53ee09a1b02df30f16dc52854b80b450847799c09b108ea134d8863d42:10:58
|
10 | if signer.borrow<&Frames.Collection>(from: Frames.CollectionStoragePath) == nil {
| ^^^^^^^^^^^^^^^^^^^^^ unknown member
error: too few arguments
--> 0c017b53ee09a1b02df30f16dc52854b80b450847799c09b108ea134d8863d42:11:30
|
11 | let collection <- Frames.createEmptyCollection()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected at least 1, got 0
error: value of type `&Frames` has no member `CollectionStoragePath`
--> 0c017b53ee09a1b02df30f16dc52854b80b450847799c09b108ea134d8863d42:12:49
|
12 | signer.save(<-collection, to: Frames.CollectionStoragePath)
| ^^^^^^^^^^^^^^^^^^^^^ unknown member
error: value of type `&Frames` has no member `CollectionPublicPath`
--> 0c017b53ee09a1b02df30f16dc52854b80b450847799c09b108ea134d8863d42:14:23
|
14 | Frames.CollectionPublicPath,
| ^^^^^^^^^^^^^^^^^^^^ unknown member
error: value of type `&Frames` has no member `CollectionStoragePath`
--> 0c017b53ee09a1b02df30f16dc52854b80b450847799c09b108ea134d8863d42:15:31
|
15 | target: Frames.CollectionStoragePath
| ^^^^^^^^^^^^^^^^^^^^^ unknown member
error: value of type `&Reels` has no member `CollectionStoragePath`
--> 0c017b53ee09a1b02df30f16dc52854b80b450847799c09b108ea134d8863d42:19:56
|
19 | if signer.borrow<&Reels.Collection>(from: Reels.CollectionStoragePath) == nil {
| ^^^^^^^^^^^^^^^^^^^^^ unknown member
error: too few arguments
--> 0c017b53ee09a1b02df30f16dc52854b80b450847799c09b108ea134d8863d42:20:30
|
20 | let collection <- Reels.createEmptyCollection()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected at least 1, got 0
error: value of type `&Reels` has no member `CollectionStoragePath`
--> 0c017b53ee09a1b02df30f16dc52854b80b450847799c09b108ea134d8863d42:21:48
|
21 | signer.save(<-collection, to: Reels.CollectionStoragePath)
| ^^^^^^^^^^^^^^^^^^^^^ unknown member
error: value of type `&Reels` has no member `CollectionPublicPath`
--> 0c017b53ee09a1b02df30f16dc52854b80b450847799c09b108ea134d8863d42:23:22
|
23 | Reels.CollectionPublicPath,
| ^^^^^^^^^^^^^^^^^^^^ unknown member
error: value of type `&Reels` has no member `CollectionStoragePath`
--> 0c017b53ee09a1b02df30f16dc52854b80b450847799c09b108ea134d8863d42:24:30
|
24 | target: Reels.CollectionStoragePath
| ^^^^^^^^^^^^^^^^^^^^^ unknown member