From 19cb42c89bccee60cc0c0d08778734d886a7bf04 Mon Sep 17 00:00:00 2001 From: gomes <17035424+gomesalexandre@users.noreply.github.com> Date: Wed, 3 Dec 2025 01:44:04 +0300 Subject: [PATCH 1/3] fix: disable SUI, TRON, and MONAD flags in development MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Temporarily disable these chain flags in .env.development to prevent errors when accessing Ledger wallet with chains that don't have full adapter support. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .env.development | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.development b/.env.development index a96ef3f4387..9c3d48edc80 100644 --- a/.env.development +++ b/.env.development @@ -80,7 +80,7 @@ VITE_FEATURE_MIXPANEL=true VITE_FEATURE_TX_HISTORY_BYE_BYE=true VITE_FEATURE_SWAPPER_FIAT_RAMPS=true VITE_FEATURE_GRIDPLUS_WALLET=true -VITE_FEATURE_SUI=true +VITE_FEATURE_SUI=false VITE_FEATURE_NOTIFICATIONS_WEBSERVICES=true # Turn those on if you use local development instead of our railway instance @@ -89,6 +89,6 @@ VITE_FEATURE_NOTIFICATIONS_WEBSERVICES=true # VITE_NOTIFICATIONS_SERVER_URL=/notifications-api VITE_FEATURE_WC_DIRECT_CONNECTION=true -VITE_FEATURE_TRON=true -VITE_FEATURE_MONAD=true +VITE_FEATURE_TRON=false +VITE_FEATURE_MONAD=false VITE_FEATURE_CETUS_SWAP=true From 985e508e3dc1326d87dbbd1ff3f911bb6315c4b0 Mon Sep 17 00:00:00 2001 From: gomes <17035424+gomesalexandre@users.noreply.github.com> Date: Wed, 3 Dec 2025 01:47:09 +0300 Subject: [PATCH 2/3] fix: ledger select chains handle flags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make Ledger supported chains respect SUI and TRON feature flags. Only include these chains in availableLedgerAppAssetIds when their corresponding feature flags are enabled. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/context/WalletProvider/Ledger/constants.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/context/WalletProvider/Ledger/constants.ts b/src/context/WalletProvider/Ledger/constants.ts index fd5f3121b27..8ab68b69f82 100644 --- a/src/context/WalletProvider/Ledger/constants.ts +++ b/src/context/WalletProvider/Ledger/constants.ts @@ -14,6 +14,7 @@ import { } from '@shapeshiftoss/caip' import { uniq } from 'lodash' +import { getConfig } from '@/config' import { getSupportedEvmChainIds } from '@/lib/utils/evm' export const LEDGER_DEVICE_ID = '0001' @@ -33,9 +34,9 @@ export const availableLedgerAppAssetIds = [ thorchainAssetId, cosmosAssetId, solAssetId, - suiAssetId, + ...(getConfig().VITE_FEATURE_SUI ? [suiAssetId] : []), mayachainAssetId, - tronAssetId, + ...(getConfig().VITE_FEATURE_TRON ? [tronAssetId] : []), ] export const availableLedgerAppChainIds = availableLedgerAppAssetIds.map( From 8d6b8ffc144e839bd91308b11530d0fca5efde23 Mon Sep 17 00:00:00 2001 From: gomes <17035424+gomesalexandre@users.noreply.github.com> Date: Wed, 3 Dec 2025 01:47:25 +0300 Subject: [PATCH 3/3] Revert "fix: disable SUI, TRON, and MONAD flags in development" This reverts commit 19cb42c89bccee60cc0c0d08778734d886a7bf04. --- .env.development | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.env.development b/.env.development index 9c3d48edc80..a96ef3f4387 100644 --- a/.env.development +++ b/.env.development @@ -80,7 +80,7 @@ VITE_FEATURE_MIXPANEL=true VITE_FEATURE_TX_HISTORY_BYE_BYE=true VITE_FEATURE_SWAPPER_FIAT_RAMPS=true VITE_FEATURE_GRIDPLUS_WALLET=true -VITE_FEATURE_SUI=false +VITE_FEATURE_SUI=true VITE_FEATURE_NOTIFICATIONS_WEBSERVICES=true # Turn those on if you use local development instead of our railway instance @@ -89,6 +89,6 @@ VITE_FEATURE_NOTIFICATIONS_WEBSERVICES=true # VITE_NOTIFICATIONS_SERVER_URL=/notifications-api VITE_FEATURE_WC_DIRECT_CONNECTION=true -VITE_FEATURE_TRON=false -VITE_FEATURE_MONAD=false +VITE_FEATURE_TRON=true +VITE_FEATURE_MONAD=true VITE_FEATURE_CETUS_SWAP=true