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 declaration `Momentables` in `9d21537544d9123d.Momentables`
--> 976e7c7ec663b292ef6c69a4e53cd25e89a8fc15d89ba7d5388c4980f0fc0fb0:3:7
|
3 | import Momentables from 0x9d21537544d9123d
| ^^^^^^^^^^^ available exported declarations are:
error: mismatched types
--> 976e7c7ec663b292ef6c69a4e53cd25e89a8fc15d89ba7d5388c4980f0fc0fb0:8:63
|
8 | if signer.capabilities.borrow<&Momentables.Collection>(/storage/MomentablesCollection) == nil {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `PublicPath`, got `StoragePath`
error: cannot infer type parameter: `T`
--> 976e7c7ec663b292ef6c69a4e53cd25e89a8fc15d89ba7d5388c4980f0fc0fb0:8:11
|
8 | if signer.capabilities.borrow<&Momentables.Collection>(/storage/MomentablesCollection) == nil {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot infer type parameter: `T`
--> 976e7c7ec663b292ef6c69a4e53cd25e89a8fc15d89ba7d5388c4980f0fc0fb0:12:12
|
12 | if (signer.capabilities.borrow<&Momentables.Collection>(/public/MomentablesCollection) == nil) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot infer type parameter: `T`
--> 976e7c7ec663b292ef6c69a4e53cd25e89a8fc15d89ba7d5388c4980f0fc0fb0:14:22
|
14 | let cap = signer.capabilities.storage.issue<&Momentables.Collection>(/storage/MomentablesCollection)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^