From c3cd54a8fb16ab5b44f2bc1922dda056759d02df Mon Sep 17 00:00:00 2001 From: abefernan <44572727+abefernan@users.noreply.github.com> Date: Mon, 12 Jun 2023 11:11:46 +0200 Subject: [PATCH] Remove assert. Comment empty prefix --- components/forms/CreateTxForm/MsgForm/MsgTransferForm.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/forms/CreateTxForm/MsgForm/MsgTransferForm.tsx b/components/forms/CreateTxForm/MsgForm/MsgTransferForm.tsx index aff6a1d..f470776 100644 --- a/components/forms/CreateTxForm/MsgForm/MsgTransferForm.tsx +++ b/components/forms/CreateTxForm/MsgForm/MsgTransferForm.tsx @@ -55,8 +55,6 @@ const MsgTransferForm = ({ fromAddress, setMsgGetter, deleteMsg }: MsgTransferFo setTimeoutError(""); const isMsgValid = (msg: TxMsg): msg is TxMsgTransfer => { - assert(state.chain.addressPrefix, "addressPrefix missing"); - if (!sourcePort) { setSourcePortError("Source port is required"); return false; @@ -77,7 +75,7 @@ const MsgTransferForm = ({ fromAddress, setMsgGetter, deleteMsg }: MsgTransferFo return false; } - const addressErrorMsg = checkAddress(toAddress, ""); + const addressErrorMsg = checkAddress(toAddress, ""); // Allow address from any chain if (addressErrorMsg) { setToAddressError(`Invalid address for network ${state.chain.chainId}: ${addressErrorMsg}`); return false; @@ -129,7 +127,6 @@ const MsgTransferForm = ({ fromAddress, setMsgGetter, deleteMsg }: MsgTransferFo setMsgGetter, sourceChannel, sourcePort, - state.chain.addressPrefix, state.chain.chainId, timeout, toAddress,