Skip to content

Commit

Permalink
provider: allow nil govkeeper in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek committed Mar 5, 2024
1 parent a19f0e6 commit 4fe9ce1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x/ccv/provider/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ func (k Keeper) mustValidateFields() {
ccv.PanicIfZeroOrNil(k.authority, "authority") // 14
ccv.PanicIfZeroOrNil(k.validatorAddressCodec, "validatorAddressCodec") // 15
ccv.PanicIfZeroOrNil(k.consensusAddressCodec, "consensusAddressCodec") // 16
ccv.PanicIfZeroOrNil(k.govKeeper, "govKeeper") // 17

// this can be nil in tests
// ccv.PanicIfZeroOrNil(k.govKeeper, "govKeeper") // 17
}

// Logger returns a module-specific logger.
Expand Down

0 comments on commit 4fe9ce1

Please sign in to comment.