Skip to content

Commit

Permalink
Update x/ccv/provider/keeper/gov_hook.go
Browse files Browse the repository at this point in the history
Co-authored-by: Shawn <[email protected]>
  • Loading branch information
yaruwangway and shaspitz authored Sep 22, 2023
1 parent c159764 commit 1f2f388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/ccv/provider/keeper/gov_hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (gh GovHooks) AfterProposalSubmission(ctx sdk.Context, proposalID uint64) {
if msgLegacyContent.Content.TypeUrl != "/interchain_security.ccv.provider.v1.ConsumerAdditionProposal" {
continue
}
// if the proposal is not ConsumerAdditionProposal, continue
// if the consumer addition proposal cannot be unmarshaled, continue
var consAdditionProp types.ConsumerAdditionProposal
if err := proto.Unmarshal(msgLegacyContent.Content.Value, &consAdditionProp); err != nil {
continue
Expand Down

0 comments on commit 1f2f388

Please sign in to comment.