From d8b4e091104dde4d1f2ee86f3093931a61b86984 Mon Sep 17 00:00:00 2001 From: MananTank Date: Tue, 17 Dec 2024 17:08:49 +0000 Subject: [PATCH] [DASH-644] Add Saakuru mainnet and Saakuru testnet in GAS_FREE_CHAINS list (#5776) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Problem solved Short description of the bug fixed or feature added --- ## PR-Codex overview This PR focuses on updating the `MismatchButton` component in the `MismatchButton.tsx` file to include new network identifiers for the `Saakuru Mainnet` and `Saakuru Testnet`. ### Detailed summary - Added `7225878` for `Saakuru Mainnet`. - Added `247253` for `Saakuru Testnet`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- apps/dashboard/src/components/buttons/MismatchButton.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/dashboard/src/components/buttons/MismatchButton.tsx b/apps/dashboard/src/components/buttons/MismatchButton.tsx index d632d32f7eb..feb18908776 100644 --- a/apps/dashboard/src/components/buttons/MismatchButton.tsx +++ b/apps/dashboard/src/components/buttons/MismatchButton.tsx @@ -59,6 +59,8 @@ const GAS_FREE_CHAINS = [ 4457845, // zero testnet 978658, // treasure topaz 300, // zksync sepolia + 7225878, // Saakuru Mainnet + 247253, // Saakuru Testnet ]; function useNetworkMismatchAdapter(desiredChainId: number) { @@ -127,6 +129,7 @@ export const MismatchButton = forwardRef< ); } + const notEnoughBalance = (evmBalance.data?.value || 0n) === 0n && !GAS_FREE_CHAINS.includes(chainId);