Skip to content

Commit

Permalink
Merge pull request #35 from dsrvlabs/feature/arbitrum-mainnet
Browse files Browse the repository at this point in the history
feat: add arbitrum mainnet
  • Loading branch information
markjung96 authored Sep 6, 2024
2 parents f2725e3 + 82ac8a7 commit edd8136
Show file tree
Hide file tree
Showing 3 changed files with 255 additions and 128 deletions.
6 changes: 3 additions & 3 deletions src/components/arbitrum/Connect.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { useState } from 'react';
import { useEffect, useState } from 'react';
import { MetamaskConnect } from './MetamaskConnect';
import { Project } from './Project';
import { Client } from '@remixproject/plugin';
import { Api } from '@remixproject/plugin-utils';
import { IRemixApi } from '@remixproject/plugin-api';
import { Connect as CommonConnect } from '../common/Connect';
import { ARBITRUM_SEPOLIA_CHAIN } from './const';
import { ARBITRUM_ONE_CHAIN, ARBITRUM_SEPOLIA_CHAIN } from './const';

interface InterfaceProps {
client: Client<Api, Readonly<IRemixApi>>;
Expand Down Expand Up @@ -39,7 +39,7 @@ export const Connect: React.FunctionComponent<InterfaceProps> = ({ client }) =>
setInjectedProvider={setInjectedProvider}
setProviderNetwork={setProviderNetwork}
/>
{providerNetwork === ARBITRUM_SEPOLIA_CHAIN.chainId ? (
{[ARBITRUM_SEPOLIA_CHAIN.chainId, ARBITRUM_ONE_CHAIN.chainId].includes(providerNetwork) ? (
<Project
account={account}
injectedProvider={injectedProvider}
Expand Down
Loading

0 comments on commit edd8136

Please sign in to comment.