Skip to content

Commit

Permalink
[DASH-644] Add Saakuru mainnet and Saakuru testnet in GAS_FREE_CHAINS…
Browse files Browse the repository at this point in the history
… list (#5776)

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## 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}`

<!-- end pr-codex -->
  • Loading branch information
MananTank committed Dec 17, 2024
1 parent 6e2e426 commit d8b4e09
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/dashboard/src/components/buttons/MismatchButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -127,6 +129,7 @@ export const MismatchButton = forwardRef<
</Button>
);
}

const notEnoughBalance =
(evmBalance.data?.value || 0n) === 0n && !GAS_FREE_CHAINS.includes(chainId);

Expand Down

0 comments on commit d8b4e09

Please sign in to comment.