diff --git a/packages/extension-koni-ui/src/Popup/Confirmations/parts/Sign/Substrate.tsx b/packages/extension-koni-ui/src/Popup/Confirmations/parts/Sign/Substrate.tsx index 29d6100c9f..f4925f500d 100644 --- a/packages/extension-koni-ui/src/Popup/Confirmations/parts/Sign/Substrate.tsx +++ b/packages/extension-koni-ui/src/Popup/Confirmations/parts/Sign/Substrate.tsx @@ -247,6 +247,7 @@ const Component: React.FC = (props: Props) => { }, [addExtraData, chain, isMessage, isMetadataOutdated, isMissingData, isRuntimeUpdated, loadingChain, networkName, signMode, t]); const activeLedger = useMemo(() => isLedger && !loadingChain && alertData?.type !== 'error', [isLedger, loadingChain, alertData?.type]); + const forceUseMigrationApp = useMemo(() => isRuntimeUpdated || (isMessage && chainSlug !== 'avail_mainnet'), [isRuntimeUpdated, isMessage, chainSlug]); const { error: ledgerError, isLoading: isLedgerLoading, @@ -255,7 +256,7 @@ const Component: React.FC = (props: Props) => { refresh: refreshLedger, signMessage: ledgerSignMessage, signTransaction: ledgerSignTransaction, - warning: ledgerWarning } = useLedger(chainSlug, activeLedger, true, isRuntimeUpdated || isMessage, account.originGenesisHash); + warning: ledgerWarning } = useLedger(chainSlug, activeLedger, true, forceUseMigrationApp, account.originGenesisHash); const isLedgerConnected = useMemo(() => !isLocked && !isLedgerLoading && !!ledger, [isLedgerLoading, isLocked, ledger]); diff --git a/packages/extension-koni-ui/src/constants/ledger.ts b/packages/extension-koni-ui/src/constants/ledger.ts index 78f8fde3df..5a9049b6e8 100644 --- a/packages/extension-koni-ui/src/constants/ledger.ts +++ b/packages/extension-koni-ui/src/constants/ledger.ts @@ -105,6 +105,19 @@ export const PredefinedLedgerNetwork: LedgerNetwork[] = [ slip44: 434, isHide: true }, + { + accountName: 'Avail', + appName: 'Avail', + networkName: 'Avail network', + genesisHash: ChainInfoMap.avail_mainnet.substrateInfo?.genesisHash || '0xb91746b45e0346cc2f815a520b9c6cb4d5c0902af848db0a80f85932d2e8276a', + icon: 'substrate', + network: 'avail', + slug: ChainInfoMap.avail_mainnet.slug, + isDevMode: false, + isGeneric: false, + isEthereum: false, + slip44: 709 + }, { accountName: 'Acala', appName: 'Acala', @@ -501,7 +514,7 @@ export const BLOCK_DEFAULT_LEDGER_NETWORKS: string[] = ['*']; export const BLOCK_TRANSFER_NATIVE_LEDGER_NETWORKS: string[] = []; export const BLOCK_TRANSFER_TOKEN_LEDGER_NETWORKS: string[] = []; export const BLOCK_TRANSFER_XCM_LEDGER_NETWORKS: string[] = ['*']; -export const BLOCK_TRANSFER_NFT_LEDGER_NETWORKS: string[] = ['astar']; +export const BLOCK_TRANSFER_NFT_LEDGER_NETWORKS: string[] = ['astar', 'avail_mainnet']; /* TRANSFER */ /* STAKING */