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: too few arguments
--> 5f32ca6f9da73a69ebbd60a96a737b1b93e4e897df8b1e7c7c53548557810617:12:33
|
12 | acct.storage.save(<- ExampleNFT.createEmptyCollection(), to: ExampleNFT.CollectionStoragePath)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected at least 1, got 0
error: value of type `&ExampleNFT` has no member `CollectionStoragePath`
--> 5f32ca6f9da73a69ebbd60a96a737b1b93e4e897df8b1e7c7c53548557810617:12:84
|
12 | acct.storage.save(<- ExampleNFT.createEmptyCollection(), to: ExampleNFT.CollectionStoragePath)
| ^^^^^^^^^^^^^^^^^^^^^ unknown member
error: cannot find type in this scope: `ExampleNFT.ExampleNFTCollectionPublic`
--> 5f32ca6f9da73a69ebbd60a96a737b1b93e4e897df8b1e7c7c53548557810617:16:52
|
16 | let cap = acct.capabilities.storage.issue<&{ExampleNFT.ExampleNFTCollectionPublic, NonFungibleToken.CollectionPublic}>(d.storagePath)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
error: cannot find type in this scope: `ExampleNFT.ExampleNFTCollectionPublic`
--> 5f32ca6f9da73a69ebbd60a96a737b1b93e4e897df8b1e7c7c53548557810617:19:74
|
19 | acct.capabilities.storage.issue<auth(NonFungibleToken.Withdraw) &{ExampleNFT.ExampleNFTCollectionPublic, NonFungibleToken.CollectionPublic, NonFungibleToken.Provider}>(d.storagePath)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope