[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: `KARAT.Collection`
--> 57f45be1f74d0924f83893c2b4c051b1ba57f7978fba295927fdf85b5b2c32a1:14:34
|
14 | if signer.storage.borrow<&KARAT.Collection>(from: collectionData.storagePath) != nil {
| ^^^^^^^^^^^^^^^^ not found in this scope
error: cannot infer type parameter: `T`
--> 57f45be1f74d0924f83893c2b4c051b1ba57f7978fba295927fdf85b5b2c32a1:14:11
|
14 | if signer.storage.borrow<&KARAT.Collection>(from: collectionData.storagePath) != nil {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: value of type `&KARAT` has no member `createEmptyCollection`
--> 57f45be1f74d0924f83893c2b4c051b1ba57f7978fba295927fdf85b5b2c32a1:19:32
|
19 | let collection <- KARAT.createEmptyCollection(nftType: Type<@KARAT.NFT>())
| ^^^^^^^^^^^^^^^^^^^^^ unknown member
error: cannot find type in this scope: `KARAT.NFT`
--> 57f45be1f74d0924f83893c2b4c051b1ba57f7978fba295927fdf85b5b2c32a1:19:69
|
19 | let collection <- KARAT.createEmptyCollection(nftType: Type<@KARAT.NFT>())
| ^^^^^^^^^ not found in this scope
error: cannot infer type parameter: `T`
--> 57f45be1f74d0924f83893c2b4c051b1ba57f7978fba295927fdf85b5b2c32a1:19:63
|
19 | let collection <- KARAT.createEmptyCollection(nftType: Type<@KARAT.NFT>())
| ^^^^^^^^^^^^^^^^^^
error: cannot find type in this scope: `KARAT.Collection`
--> 57f45be1f74d0924f83893c2b4c051b1ba57f7978fba295927fdf85b5b2c32a1:26:63
|
26 | let collectionCap = signer.capabilities.storage.issue<&KARAT.Collection>(collectionData.storagePath)
| ^^^^^^^^^^^^^^^^ not found in this scope
error: cannot infer type parameter: `T`
--> 57f45be1f74d0924f83893c2b4c051b1ba57f7978fba295927fdf85b5b2c32a1:26:28
|
26 | let collectionCap = signer.capabilities.storage.issue<&KARAT.Collection>(collectionData.storagePath)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^