Skip to content

Commit

Permalink
chore(CI): add eth_getStorageAt, eth_getProof cases (#1632)
Browse files Browse the repository at this point in the history
* add eth_getStorageAt、eth_getProof cases

Update hardfork_test.yml

update hardfork_test ref

* use new repo
  • Loading branch information
sunchengzhu authored Dec 12, 2023
1 parent d38ae58 commit 7d8de68
Showing 1 changed file with 14 additions and 8 deletions.
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
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

0 comments on commit 7d8de68

Please sign in to comment.