Skip to content

Commit

Permalink
chore: update ethers
Browse files Browse the repository at this point in the history
  • Loading branch information
idea404 committed May 16, 2024
1 parent 7b58458 commit 98a7a7a
Show file tree
Hide file tree
Showing 7 changed files with 6,845 additions and 5,559 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@types/node": "^16.7.13",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"ethers": "^6.11.1",
"ethers": "^6.12.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
Expand Down
12,384 changes: 6,835 additions & 5,549 deletions frontend/pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function App() {
(window as any).ethereum.request({
method: "wallet_addEthereumChain",
params: [{
chainId: ethers.toBeHex(chainId),
chainId: `0x${chainId.toString(16)}`,
rpcUrls: [networks[network].rpcUrl],
chainName: networks[network].name,
nativeCurrency: {
Expand Down
10 changes: 5 additions & 5 deletions frontend/src/constants/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ export const networks: Networks = {
omni: {
name: "Omni Test",
rpcUrl: "http://localhost:8000",
globalManagerContractAddress: "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",
globalManagerContractAddress: "0x0DCd1Bf9A1b36cE34237eEaFef220932846BCD82",
},
op: {
name: "Optimism Test Rollup",
rpcUrl: "http://localhost:8001",
localTokenContractAddress: "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",
stakeContractAddress: "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0",
localTokenContractAddress: "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853",
stakeContractAddress: "0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6",
},
arb: {
name: "Arbitrum Test Rollup",
rpcUrl: "http://localhost:8002",
localTokenContractAddress: "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512",
stakeContractAddress: "0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0",
localTokenContractAddress: "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853",
stakeContractAddress: "0x2279B7A0a67DB372996a5FaB50D91eAA73d2eBe6",
}
};
2 changes: 1 addition & 1 deletion lib/omni
Submodule omni updated 429 files
2 changes: 1 addition & 1 deletion script/bash/env.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

export PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 # anvil first private key
export PORTAL_ADDRESS=0x0c2764f3726c0cfa9d84687d1bf8ddceb4835a9f # portal address
export PORTAL_ADDRESS=0xe1978ad8005670b8809B53480219dF7f5f4e4418 # portal address
export GLOBAL_CHAIN_ID=1651 # global chain ID (testnet is 165)
export OMNI_RPC_URL=http://localhost:8000 # Omni EVM RPC URL
export OP_CHAIN_ID=1655 # Optimism Sepolia Chain ID is 11155420
Expand Down

0 comments on commit 98a7a7a

Please sign in to comment.