Skip to content

Commit

Permalink
fix: remove validation for provider chain address since we cannot val…
Browse files Browse the repository at this point in the history
…idate it properly on consumer
  • Loading branch information
NeverHappened committed Sep 5, 2023
1 parent 6da7fef commit 1b5183c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions x/ccv/consumer/types/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ func TestValidateParams(t *testing.T) {
"custom invalid params, dist transmission channel",
ccvtypes.NewParams(true, 5, "badchannel/", "", 5, 1005, "0.5", 1000, 24*21*time.Hour, "0.05", []string{"untrn"}, []string{"uatom"}), false,
},
{
"custom invalid params, provider fee pool addr string",
ccvtypes.NewParams(true, 5, "", "imabadaddress", 5, 1005, "0.5", 1000, 24*21*time.Hour, "0.05", []string{"untrn"}, []string{"uatom"}), false,
},
{
"custom invalid params, ccv timeout",
ccvtypes.NewParams(true, 5, "", "", -5, 1005, "0.5", 1000, 24*21*time.Hour, "0.05", []string{"untrn"}, []string{"uatom"}), false,
Expand Down
4 changes: 2 additions & 2 deletions x/ccv/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ func ValidateProviderFeePoolAddrStr(i interface{}) error {
if i == "" {
return nil
}
// Otherwise validate as usual for a bech32 address
return ValidateBech32(i)
// Cannot validate provider chain address on the consumer chain
return nil
}

func ValidateSoftOptOutThreshold(i interface{}) error {
Expand Down

0 comments on commit 1b5183c

Please sign in to comment.