Skip to content

Commit 6240860

Browse files
Gateway specific fixes for v26 december OZ audit (#1238)
Co-authored-by: kelemeno <[email protected]>
1 parent 91631aa commit 6240860

File tree

24 files changed

+2098
-107
lines changed

24 files changed

+2098
-107
lines changed

.github/workflows/l1-contracts-ci.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,23 @@ jobs:
205205
- name: Compare
206206
run: diff tools/data/Verifier.sol l1-contracts/contracts/state-transition/Verifier.sol
207207

208+
check-verifier-generator-l2:
209+
needs: [build]
210+
runs-on: ubuntu-latest
211+
212+
steps:
213+
- name: Checkout the repository
214+
uses: actions/checkout@v4
215+
with:
216+
submodules: recursive
217+
218+
- name: Generate Verifier.sol
219+
working-directory: tools
220+
run: cargo run --bin zksync_verifier_contract_generator --release -- --input_path data/scheduler_key.json --l2_mode
221+
222+
- name: Compare
223+
run: diff tools/data/Verifier.sol l1-contracts/contracts/state-transition/L2Verifier.sol
224+
208225
coverage:
209226
defaults:
210227
run:

.github/workflows/l2-contracts-ci.yaml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -74,23 +74,6 @@ jobs:
7474
- name: Lint
7575
run: yarn lint:check
7676

77-
check-verifier-generator-l2:
78-
needs: [build]
79-
runs-on: ubuntu-latest
80-
81-
steps:
82-
- name: Checkout the repository
83-
uses: actions/checkout@v4
84-
with:
85-
submodules: recursive
86-
87-
- name: Generate Verifier.sol
88-
working-directory: tools
89-
run: cargo run --bin zksync_verifier_contract_generator --release -- --input_path data/scheduler_key.json --l2_mode
90-
91-
- name: Compare
92-
run: diff tools/data/Verifier.sol l2-contracts/contracts/verifier/Verifier.sol
93-
9477
test:
9578
needs: [build, lint]
9679
runs-on: ubuntu-latest

.github/workflows/slither.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,14 @@ jobs:
4343
run: |
4444
rm -rf ./l1-contracts/contracts/state-transition/utils/
4545
rm -rf ./l1-contracts/contracts/state-transition/Verifier.sol
46+
rm -rf ./l1-contracts/contracts/state-transition/L2Verifier.sol
4647
rm -rf ./l1-contracts/contracts/state-transition/TestnetVerifier.sol
48+
rm -rf ./l1-contracts/contracts/state-transition/L2TestnetVerifier.sol
4749
rm -rf ./l1-contracts/contracts/state-transition/chain-deps/GatewayCTMDeployer.sol
4850
rm -rf ./l1-contracts/contracts/dev-contracts/test/VerifierTest.sol
4951
rm -rf ./l1-contracts/contracts/dev-contracts/test/VerifierRecursiveTest.sol
52+
rm -rf ./l1-contracts/contracts/dev-contracts/test/L2VerifierTest.sol
53+
rm -rf ./l1-contracts/contracts/dev-contracts/test/L2VerifierRecursiveTest.sol
5054
5155
- name: Run Slither
5256
working-directory: l1-contracts

0 commit comments

Comments
 (0)