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: mismatched types
--> 7898ace6c42f415e55edfc0ab80e84c1d5642bb6638360fc5e4da052a5396288:34:78
|
34 | self.adminRef = acct.capabilities.borrow<&FlowversePrimarySale.Admin>(FlowversePrimarySale.AdminStoragePath)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `PublicPath`, got `StoragePath`
error: mismatched types
--> 7898ace6c42f415e55edfc0ab80e84c1d5642bb6638360fc5e4da052a5396288:37:84
|
37 | let flowverseAdminRef = acct.capabilities.borrow<&FlowverseTreasures.Admin>(FlowverseTreasures.AdminStoragePath)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `PublicPath`, got `StoragePath`
error: value of type `auth(Storage, Capabilities) &Account` has no member `save`
--> 7898ace6c42f415e55edfc0ab80e84c1d5642bb6638360fc5e4da052a5396288:51:13
|
51 | acct.save(<- minter, to: storagePath)
| ^^^^ unknown member
error: value of type `auth(Storage, Capabilities) &Account` has no member `account`
--> 7898ace6c42f415e55edfc0ab80e84c1d5642bb6638360fc5e4da052a5396288:52:30
|
52 | self.minterCap = acct.account.capabilities.storage.issue<&{FlowversePrimarySale.IMinter}>(storagePath)
| ^^^^^^^ unknown member