From 879dc4f882fd39182d7e49f439ef5bd3043aa016 Mon Sep 17 00:00:00 2001 From: Hoon <48665813+sh-cha@users.noreply.github.com> Date: Thu, 26 Sep 2024 17:49:11 +0900 Subject: [PATCH] delete msg.To codec check from validate (#111) --- x/opchild/types/tx.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/x/opchild/types/tx.go b/x/opchild/types/tx.go index b95673c..e31bbb8 100644 --- a/x/opchild/types/tx.go +++ b/x/opchild/types/tx.go @@ -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