Skip to content

Commit 85422b4

Browse files
committed
remove duplicate val address check
1 parent f9e32b4 commit 85422b4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

x/feeds/types/msgs.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,11 @@ func (m *MsgSubmitSignalPrices) GetSigners() []sdk.AccAddress {
4444

4545
// ValidateBasic does a check on the provided data.
4646
func (m *MsgSubmitSignalPrices) ValidateBasic() error {
47-
valAddr, err := sdk.ValAddressFromBech32(m.Validator)
47+
_, err := sdk.ValAddressFromBech32(m.Validator)
4848
if err != nil {
4949
return err
5050
}
5151

52-
if err := sdk.VerifyAddressFormat(valAddr); err != nil {
53-
return sdkerrors.ErrInvalidAddress.Wrapf("validator: %s", m.Validator)
54-
}
55-
5652
// Map to track signal IDs for duplicate check
5753
signalIDSet := make(map[string]struct{})
5854

0 commit comments

Comments
 (0)