Whoops! 😨 Something unexpected happened...
[Error Code: 1101] cadence runtime error Execution failed:
error: loss of resource
--> 0f9df91c9121c460.BloctoTokenStaking:366:20
|
366 | let tokenReward <- BloctoTokenMinter.mintTokens(amount: rewardAmount)
| ^^^^^^^^^^^
error: cannot find type in this scope: `BloctoTokenStaking`
--> 0f9df91c9121c460.BloctoPass:46:34
|
46 | pub fun getStakingInfo(): BloctoTokenStaking.StakerInfo
| ^^^^^^^^^^^^^^^^^^ not found in this scope
error: cannot find type in this scope: `BloctoTokenStaking`
--> 0f9df91c9121c460.BloctoPass:65:34
|
65 | access(self) let staker: @BloctoTokenStaking.Staker
| ^^^^^^^^^^^^^^^^^^ not found in this scope
error: cannot find type in this scope: `BloctoTokenStaking`
--> 0f9df91c9121c460.BloctoPass:161:34
|
161 | pub fun getStakingInfo(): BloctoTokenStaking.StakerInfo {
| ^^^^^^^^^^^^^^^^^^ not found in this scope
error: cannot find type in this scope: `BloctoTokenStaking`
--> 0f9df91c9121c460.BloctoPass:46:34
|
46 | pub fun getStakingInfo(): BloctoTokenStaking.StakerInfo
| ^^^^^^^^^^^^^^^^^^ not found in this scope
error: cannot find type in this scope: `BloctoTokenStaking`
--> 0f9df91c9121c460.BloctoPass:100:58
|
100 | let stakingAdmin = BloctoPass.account.borrow<&BloctoTokenStaking.Admin>(from: BloctoTokenStaking.StakingAdminStoragePath)
| ^^^^^^^^^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `BloctoTokenStaking`
--> 0f9df91c9121c460.BloctoPass:100:90
|
100 | let stakingAdmin = BloctoPass.account.borrow<&BloctoTokenStaking.Admin>(from: BloctoTokenStaking.StakingAdminStoragePath)
| ^^^^^^^^^^^^^^^^^^ not found in this scope
error: cannot infer type parameter: `T`
--> 0f9df91c9121c460.BloctoPass:100:31
|
100 | let stakingAdmin = BloctoPass.account.borrow<&BloctoTokenStaking.Admin>(from: BloctoTokenStaking.StakingAdminStoragePath)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot find type in this scope: `BloctoTokenStaking`
--> 0f9df91c9121c460.BloctoPass:161:34
|
161 | pub fun getStakingInfo(): BloctoTokenStaking.StakerInfo {
| ^^^^^^^^^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `BloctoTokenStaking`
--> 0f9df91c9121c460.BloctoPass:162:19
|
162 | return BloctoTokenStaking.StakerInfo(stakerID: self.id)
| ^^^^^^^^^^^^^^^^^^ not found in this scope
error: cannot find variable in this scope: `BloctoTokenStaking`
--> 0f9df91c9121c460.BloctoPass:195:43
|
195 | return self.getIdleBalance() + BloctoTokenStaking.StakerInfo(self.id).totalTokensInRecord()
| ^^^^^^^^^^^^^^^^^^ not found in this scope
error: cannot find type in this scope: `BloctoPass`
--> 0a34e760864ea455052dc8763aa02e07f2d6e144056d3348c76c3ba9ff267f86:31:22
|
31 | if signer.borrow<&BloctoPass.Collection>(from: /storage/bloctoPassCollection) == nil {
| ^^^^^^^^^^ not found in this scope
error: cannot infer type parameter: `T`
--> 0a34e760864ea455052dc8763aa02e07f2d6e144056d3348c76c3ba9ff267f86:31:7
|
31 | if signer.borrow<&BloctoPass.Collection>(from: /storage/bloctoPassCollection) == nil {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot find variable in this scope: `BloctoPass`
--> 0a34e760864ea455052dc8763aa02e07f2d6e144056d3348c76c3ba9ff267f86:32:20
|
32 | signer.save(<-BloctoPass.createEmptyCollection(), to: /storage/bloctoPassCollection)
| ^^^^^^^^^^ not found in this scope
error: cannot find type in this scope: `BloctoPass`
--> 0a34e760864ea455052dc8763aa02e07f2d6e144056d3348c76c3ba9ff267f86:34:55
|
34 | signer.link<&{NonFungibleToken.CollectionPublic, BloctoPass.CollectionPublic}>(
| ^^^^^^^^^^ not found in this scope
error: cannot find type in this scope: `BloctoPass`
--> 0a34e760864ea455052dc8763aa02e07f2d6e144056d3348c76c3ba9ff267f86:40:51
|
40 | .borrow<&{NonFungibleToken.CollectionPublic, BloctoPass.CollectionPublic}>()
| ^^^^^^^^^^ not found in this scope
error: cannot find type in this scope: `BloctoPass`
--> 0a34e760864ea455052dc8763aa02e07f2d6e144056d3348c76c3ba9ff267f86:45:18
|
45 | .borrow<&{BloctoPass.MinterPublic}>()
| ^^^^^^^^^^ not found in this scope
error: ambiguous restricted type
--> 0a34e760864ea455052dc8763aa02e07f2d6e144056d3348c76c3ba9ff267f86:45:17
|
45 | .borrow<&{BloctoPass.MinterPublic}>()
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: cannot infer type parameter: `T`
--> 0a34e760864ea455052dc8763aa02e07f2d6e144056d3348c76c3ba9ff267f86:44:22
|
44 | let minterRef = getAccount(0x0f9df91c9121c460).getCapability(/public/bloctoPassMinter)
| ^