Flow price: --
634723276f3b3b70dab0d5bae8dcc88c30ed00ce702b788982b89909cdcde52e

Transaction

Hash: 634723276f3b3b70dab0d5bae8dcc88c30ed00ce702b788982b89909cdcde52e
error
Error

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
Hash:
634723276f3b3b70dab0d5bae8dcc88c30ed00ce702b788982b89909cdcde52e
Status:
ERROR
Block height:
31737968
Block id:
0c7b69272c8a36e272f16dc26811b5ef7bab5c6bd79cbb675256a62bc80a2098
Timestamp:
Wednesday 15 June 2022 at 18:46:55 UTC
()
Proposer: