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 `TraderflowNFT` in `1654653399040a61.TraderflowNFT`
--> ee23ebb44ff6082b288ae51b51c2065be53bf1505ef3c97f5fa1707ebdd193a3:4:7
|
4 | import TraderflowNFT from 0x1654653399040a61
| ^^^^^^^^^^^^^ available exported declarations are:
error: cannot infer type parameter: `T`
--> ee23ebb44ff6082b288ae51b51c2065be53bf1505ef3c97f5fa1707ebdd193a3:8:11
|
8 | if signer.storage.borrow<&TraderflowNFT.Collection>(from: TraderflowNFT.CollectionStoragePath) == nil {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot infer type parameter: `T`
--> ee23ebb44ff6082b288ae51b51c2065be53bf1505ef3c97f5fa1707ebdd193a3:9:80
|
9 | signer.storage.save(<- TraderflowNFT.createEmptyCollection(nftType: Type<@TraderflowNFT.Collection>()), to: TraderflowNFT.CollectionStoragePath)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot infer type parameter: `T`
--> ee23ebb44ff6082b288ae51b51c2065be53bf1505ef3c97f5fa1707ebdd193a3:11:22
|
11 | let cap = signer.capabilities.storage.issue<&TraderflowNFT.Collection>(TraderflowNFT.CollectionStoragePath)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^