Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(CI): add eth_getStorageAt, eth_getProof cases #1632

Merged
merged 2 commits into from
Dec 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions .github/workflows/hardfork_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ jobs:
EOF
timeout-minutes: 1

- name: Checkout axonweb3/axon-hardfork-test
- name: Checkout axonweb3/system-contract-test
uses: actions/checkout@v4
with:
repository: axonweb3/axon-hardfork-test
ref: b1f768de8be10604cad882474c0dcfa19c0a93ea
path: axon-hardfork-test
repository: axonweb3/system-contract-test
ref: 69293ac366991cf5830ab8366a85d72449daeadc
Flouse marked this conversation as resolved.
Show resolved Hide resolved
path: system-contract-test

- name: Choose network
working-directory: axon-hardfork-test
working-directory: system-contract-test
run: |
node_ids=(1 2 3 4)
random_value=$(( (RANDOM % ${#node_ids[@]}) + 1 ))
Expand All @@ -93,20 +93,26 @@ jobs:
grep "defaultNetwork" hardhat.config.ts

- name: Run test cases before hardfork
working-directory: axon-hardfork-test
working-directory: system-contract-test
run: |
npm install
npx hardhat test --grep "deploy a normal contract"
npx hardhat test --grep "deploy a big contract larger than max_contract_limit"
npx hardhat test --grep "check hardfork info before hardfork"

- name: Run test cases to verify proof
working-directory: system-contract-test
run: |
npx hardhat test --grep "transfer demo"
npx hardhat test test/verifyProof.ts --network proof

- name: Hardfork
working-directory: axon-hardfork-test
working-directory: system-contract-test
run: |
bash hardfork.sh ../

- name: Run test cases after hardfork
working-directory: axon-hardfork-test
working-directory: system-contract-test
run: |
npx hardhat test --grep "check hardfork info after hardfork"
npx hardhat test --grep "update max_contract_limit"
Expand Down
Loading