File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 9
9
capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper"
10
10
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
11
11
12
- stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper"
13
- upgradekeeper "github.com/cosmos/cosmos-sdk/x/upgrade/keeper"
14
12
clientkeeper "github.com/cosmos/ibc-go/v3/modules/core/02-client/keeper"
15
13
clienttypes "github.com/cosmos/ibc-go/v3/modules/core/02-client/types"
16
14
connectionkeeper "github.com/cosmos/ibc-go/v3/modules/core/03-connection/keeper"
@@ -89,10 +87,10 @@ func (k *Keeper) SetRouter(rtr *porttypes.Router) {
89
87
90
88
func checkEmptyKeepers (stakingKeeper clienttypes.StakingKeeper , upgradeKeeper clienttypes.UpgradeKeeper ,
91
89
scopedKeeper capabilitykeeper.ScopedKeeper ) error {
92
- if reflect .DeepEqual (stakingkeeper. Keeper {}, stakingKeeper .(stakingkeeper. Keeper ) ) {
90
+ if reflect .ValueOf ( stakingKeeper ). IsZero ( ) {
93
91
return fmt .Errorf ("empty staking keeper" )
94
92
}
95
- if reflect .DeepEqual (upgradekeeper. Keeper {}, upgradeKeeper .(upgradekeeper. Keeper ) ) {
93
+ if reflect .ValueOf ( upgradeKeeper ). IsZero ( ) {
96
94
return fmt .Errorf ("empty upgradeKeeper" )
97
95
}
98
96
if reflect .DeepEqual (capabilitykeeper.ScopedKeeper {}, scopedKeeper ) {
You can’t perform that action at this time.
0 commit comments