Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasbrugneaux committed Dec 18, 2024
1 parent f237b89 commit 55294c1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ jobs:
- name: test
run: yarn run test
env:
NEXT_PUBLIC_RPC_URL: ${{ secrets.RPC_URL }}
NEXT_PUBLIC_RPC_URL: https://public-archive-nodes.celo-testnet.org
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@
"typecheck": "tsc",
"lint": "next lint",
"start": "next start",
"test": "yarn test:L1 && yarn test:L2",
"test:L1": "VITE_ANVIL_CELO_VERSION=L1 vitest",
"test:L2": "VITE_ANVIL_CELO_VERSION=L2 vitest",
"test": "vitest",
"prettier": "prettier --write ./src",
"checks": "yarn typecheck && yarn lint && yarn test && yarn prettier && yarn build:app"
},
Expand Down
27 changes: 0 additions & 27 deletions src/test/anvil/constants.ts
Original file line number Diff line number Diff line change
@@ -1,33 +1,6 @@
import { parseEther } from 'viem';
import { celo } from 'viem/chains';

// export const VITE_ANVIL_CELO_VERSION = process.env.VITE_ANVIL_CELO_VERSION as 'L1' | 'L2';

// if (!['L1', 'L2'].includes(VITE_ANVIL_CELO_VERSION)) {
// throw new Error(
// 'Missing or incorrect environment variable "VITE_ANVIL_CELO_VERSION", must be L1 or L2',
// );
// }
// export const ANVIL_STATE_PATH = require.resolve(
// VITE_ANVIL_CELO_VERSION === 'L1'
// ? '@celo/devchain-anvil/devchain.json'
// : '@celo/devchain-anvil/l2-devchain.json',
// );
// export const FORK_BLOCK_NUMBER = BigInt(29162229);

// export const FORK_BLOCK_NUMBER =
// // last friday 12:23
// 29162229n -
// // 17 days
// 8n *
// // day
// 17280n;

// // Proposal for Stablecoin & dApp Public Goods Dashboard blockcnumber
// export const FORK_BLOCK_NUMBER = BigInt('0x1ae603b') - 1n * 17280n;

// Proposal for Creation of Celo Governance Guild
// export const FORK_BLOCK_NUMBER = BigInt('0x1bb55eb') - (5n * 17280n) / 2n;
export const FORK_BLOCK_NUMBER = 29162229n;

export const ANVIL_CHAIN_ID = celo.id;
Expand Down

0 comments on commit 55294c1

Please sign in to comment.