File tree 2 files changed +0
-22
lines changed
modules/apps/27-interchain-accounts/controller/types
2 files changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,6 @@ func (msg MsgRegisterInterchainAccount) ValidateBasic() error {
31
31
return sdkerrors .Wrap (sdkerrors .ErrInvalidAddress , "owner address cannot be empty" )
32
32
}
33
33
34
- if _ , err := sdk .AccAddressFromBech32 (msg .Owner ); err != nil {
35
- return sdkerrors .Wrapf (sdkerrors .ErrInvalidAddress , "failed to parse owner address: %s" , msg .Owner )
36
- }
37
-
38
34
return nil
39
35
}
40
36
@@ -68,10 +64,6 @@ func (msg MsgSendTx) ValidateBasic() error {
68
64
return sdkerrors .Wrap (sdkerrors .ErrInvalidAddress , "owner address cannot be empty" )
69
65
}
70
66
71
- if _ , err := sdk .AccAddressFromBech32 (msg .Owner ); err != nil {
72
- return sdkerrors .Wrapf (sdkerrors .ErrInvalidAddress , "failed to parse owner address: %s" , msg .Owner )
73
- }
74
-
75
67
if err := msg .PacketData .ValidateBasic (); err != nil {
76
68
return sdkerrors .Wrap (err , "invalid interchain account packet data" )
77
69
}
Original file line number Diff line number Diff line change @@ -61,13 +61,6 @@ func TestMsgRegisterInterchainAccountValidateBasic(t *testing.T) {
61
61
},
62
62
false ,
63
63
},
64
- {
65
- "owner address is invalid" ,
66
- func () {
67
- msg .Owner = "invalid_address"
68
- },
69
- false ,
70
- },
71
64
}
72
65
73
66
for i , tc := range testCases {
@@ -124,13 +117,6 @@ func TestMsgSendTxValidateBasic(t *testing.T) {
124
117
},
125
118
false ,
126
119
},
127
- {
128
- "owner address is invalid" ,
129
- func () {
130
- msg .Owner = "invalid_address"
131
- },
132
- false ,
133
- },
134
120
{
135
121
"relative timeout is not set" ,
136
122
func () {
You can’t perform that action at this time.
0 commit comments