Skip to content

Commit

Permalink
removed unecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
insumity committed Nov 5, 2024
1 parent 506bb3c commit 44969ef
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions x/ccv/provider/types/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,12 +404,6 @@ func (msg MsgUpdateConsumer) ValidateBasic() error {
}
}

if strings.TrimSpace(msg.NewChainId) != "" {
if err := ValidateStringField("NewChainId", msg.NewChainId, cmttypes.MaxChainIDLen); err != nil {
return errorsmod.Wrapf(ErrInvalidMsgUpdateConsumer, "NewChainId: %s", err.Error())
}
}

return nil
}

Expand Down
6 changes: 0 additions & 6 deletions x/ccv/provider/types/msg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -552,12 +552,6 @@ func TestMsgUpdateConsumerValidateBasic(t *testing.T) {
"validchainid-0",
true,
},
{
"too long new chain id",
types.PowerShapingParameters{},
strings.Repeat("thisIsAnExtremelyLongChainId", 2),
false,
},
}

for _, tc := range testCases {
Expand Down

0 comments on commit 44969ef

Please sign in to comment.