Skip to content

Commit

Permalink
update GetAllValidatorsByConsumerAddr
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaru Wang committed Sep 7, 2023
1 parent ab9d082 commit 020e623
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/ccv/provider/keeper/key_assignment.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func (k Keeper) GetAllValidatorsByConsumerAddr(ctx sdk.Context, chainID *string)
panic(fmt.Sprintf("failed to parse chainID and consumer address: %v", err))
}

if cID == *chainID {
if cID == *chainID || chainID == nil {
consumerAddr := types.NewConsumerConsAddress(consumerAddrTmp)
providerAddr := types.NewProviderConsAddress(iterator.Value())

Expand Down

0 comments on commit 020e623

Please sign in to comment.