Remove assert. Comment empty prefix
This commit is contained in:
parent
e1899eb5cc
commit
c3cd54a8fb
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user