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