Skip to content

Commit

Permalink
delete msg.To codec check from validate (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-cha authored Sep 26, 2024
1 parent a2f5a14 commit 879dc4f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions x/opchild/types/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,6 @@ func (msg MsgFinalizeTokenDeposit) Validate(ac address.Codec) error {
return sdkerrors.ErrInvalidAddress.Wrap("from address cannot be empty")
}

if _, err := ac.StringToBytes(msg.To); err != nil {
return err
}

// allow zero amount
if !msg.Amount.IsValid() {
return ErrInvalidAmount
Expand Down

0 comments on commit 879dc4f

Please sign in to comment.