Whoops! 😨 Something unexpected happened...
[Error Code: 1054] error caused by: 1 error occurred:
* transaction preprocess failed: [Error Code: 1101] cadence runtime error: Execution failed:
error: [Error Code: 1054] location (FlowIDTableStaking) is not a valid location: expecting an AddressLocation, but other location types are passed
--> FlowIDTableStaking
error: cannot find type in this scope: `FlowIDTableStaking`
--> 34ca3503cc878c13aafa0e2176724a8db2d2672e6629a6d84105fcd1a3405e87:9:19
|
9 | let adminRef: &FlowIDTableStaking.Admin
| ^^^^^^^^^^^^^^^^^^ not found in this scope
error: cannot find type in this scope: `FlowIDTableStaking`
--> 34ca3503cc878c13aafa0e2176724a8db2d2672e6629a6d84105fcd1a3405e87:13:45
|
13 | self.adminRef = acct.storage.borrow<&FlowIDTableStaking.Admin>(from: FlowIDTableStaking.StakingAdminStoragePath)
| ^^^^^^^^^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `FlowIDTableStaking`
--> 34ca3503cc878c13aafa0e2176724a8db2d2672e6629a6d84105fcd1a3405e87:13:77
|
13 | self.adminRef = acct.storage.borrow<&FlowIDTableStaking.Admin>(from: FlowIDTableStaking.StakingAdminStoragePath)
| ^^^^^^^^^^^^^^^^^^ not found in this scope
error: cannot infer type parameter: `T`
--> 34ca3503cc878c13aafa0e2176724a8db2d2672e6629a6d84105fcd1a3405e87:13:24
|
13 | self.adminRef = acct.storage.borrow<&FlowIDTableStaking.Admin>(from: FlowIDTableStaking.StakingAdminStoragePath)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^