Whoops! 😨 Something unexpected happened...
[Error Code: 1101] cadence runtime error Execution failed:
error: cannot deploy invalid contract
--> 634723276f3b3b70dab0d5bae8dcc88c30ed00ce702b788982b89909cdcde52e:3:4
|
3 | admin.contracts.update__experimental(name: "BloctoPass", code: code.decodeHex())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: mismatched types
--> 0f9df91c9121c460.BloctoTokenStaking:432:16
|
432 | return &BloctoTokenStaking.stakers[stakerID] as! &StakerRecord
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `BloctoTokenStaking.StakerRecord`, got `BloctoTokenStaking.StakerRecord?`
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