Skip to content

Commit

Permalink
Merge pull request #300 from fairDataSociety/feat/zkevm
Browse files Browse the repository at this point in the history
Feat/zkevm
  • Loading branch information
tfius authored Dec 20, 2023
2 parents df99c01 + 5358a44 commit 459fce0
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 77 deletions.
128 changes: 61 additions & 67 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"dependencies": {
"@emotion/react": "^11.10.4",
"@emotion/styled": "^11.10.4",
"@fairdatasociety/fdp-contracts-js": "^3.6.1",
"@fairdatasociety/fdp-storage": "^0.10.0",
"@fairdatasociety/fdp-contracts-js": "^3.10.0",
"@fairdatasociety/fdp-storage": "^0.17.0",
"@mui/icons-material": "^5.10.6",
"@mui/material": "^5.10.7",
"@testing-library/jest-dom": "^5.16.5",
Expand Down
9 changes: 1 addition & 8 deletions src/context/account.context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,7 @@ export const AccountProvider = ({ children }: AccountContextProps) => {
);

const ens = useMemo(
() =>
new ENS(
currentNetwork.label === "Sepolia"
? { ...currentNetwork.config, rpcUrl: "http://rpc.sepolia.org" }
: currentNetwork.config,
provider,
FDS_DOMAIN
),
() => new ENS(currentNetwork.config, provider, FDS_DOMAIN),
[currentNetwork, provider]
);

Expand Down
5 changes: 5 additions & 0 deletions src/context/network.context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ export const networks: Network[] = [
config: getEnsEnvironmentConfig(Environments.ARBITRUM_GOERLI),
minBalance: utils.parseUnits("0.001", "ether"),
},
{
label: "zkEVM Testnet",
config: getEnsEnvironmentConfig(Environments.ZKEVM_TESTNET),
minBalance: utils.parseUnits("0.001", "ether"),
},
];

if (process.env.REACT_APP_ENVIRONMENT === "LOCALHOST") {
Expand Down
3 changes: 3 additions & 0 deletions src/model/network.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ export interface Network {
ensRegistry: string;
fdsRegistrar: string;
publicResolver: string;
reverseResolver: string;
nameResolver: string;
};
performChecks: boolean;
gasEstimation: number;
};
}

0 comments on commit 459fce0

Please sign in to comment.