From 5058eead2ffa6bf6dc8255c58e273a35e8fc99b5 Mon Sep 17 00:00:00 2001 From: nrjsuthar Date: Thu, 19 Sep 2024 12:59:42 +0530 Subject: [PATCH] feat(avaxc): add support for evm ccr feat(avaxc): add support for evm ccr TICKET-1708 --- .../EvmCrossChainRecoveryWallet/ColdWalletForm.tsx | 2 +- .../EvmCrossChainRecoveryBaseForm.tsx | 6 +++--- .../EvmCrossChainRecoveryWallet.tsx | 2 +- .../EvmCrossChainRecoveryWallet/HotWalletForm.tsx | 2 +- src/helpers/index.ts | 5 +++++ 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/containers/EvmCrossChainRecoveryWallet/ColdWalletForm.tsx b/src/containers/EvmCrossChainRecoveryWallet/ColdWalletForm.tsx index 979e046a..ecd16b56 100644 --- a/src/containers/EvmCrossChainRecoveryWallet/ColdWalletForm.tsx +++ b/src/containers/EvmCrossChainRecoveryWallet/ColdWalletForm.tsx @@ -11,7 +11,7 @@ const validationSchema = Yup.object({ userKeyId: Yup.string(), walletContractAddress: Yup.string().required(), tokenContractAddress: Yup.string(), - apiKey: Yup.string().required(), + apiKey: Yup.string(), wrongChain: Yup.string().required(), intendedChain: Yup.string().required(), }).required(); diff --git a/src/containers/EvmCrossChainRecoveryWallet/EvmCrossChainRecoveryBaseForm.tsx b/src/containers/EvmCrossChainRecoveryWallet/EvmCrossChainRecoveryBaseForm.tsx index b7011f99..e94a5a20 100644 --- a/src/containers/EvmCrossChainRecoveryWallet/EvmCrossChainRecoveryBaseForm.tsx +++ b/src/containers/EvmCrossChainRecoveryWallet/EvmCrossChainRecoveryBaseForm.tsx @@ -8,8 +8,7 @@ import { CoinMetadata, allWalletMetas, } from '~/helpers/config'; -import { BitgoEnv, isBscChain, safeEnv } from '~/helpers'; -import { allCoinMetas } from '~/helpers/config'; +import { BitgoEnv, isAvaxcCoin, safeEnv } from '~/helpers'; export function EvmCrossChainRecoveryBaseForm({ formik, @@ -34,6 +33,7 @@ export function EvmCrossChainRecoveryBaseForm({ {`${coin.Title}: ${coin.Description}`} )); + wrongChainCoinsChildren.unshift(