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

feat: Added script to compute hashes from L1, L2 and system contracts #1187

Merged
merged 27 commits into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
more
  • Loading branch information
mm-zk committed Jan 8, 2025
commit 45ad04dae0a7dc2243824e95c7775453b71d55f2
5 changes: 3 additions & 2 deletions .github/workflows/l1-contracts-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ jobs:

- name: Check contents
run: |
ls l2-contracts/zkout
ls system-contracts/zkout
pwd
ls -R l2-contracts/zkout
ls -R system-contracts/zkout

- name: Check hashes
run: yarn calculate-hashes:check
Expand Down
1 change: 1 addition & 0 deletions scripts/calculate-hashes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const findDirsEndingWith = (path: string, endingWith: string): fs.Dirent[] => {
const dirs = fs
.readdirSync(absolutePath, { withFileTypes: true, recursive: true })
.filter((dirent) => dirent.isDirectory());
console.log("Dirs for ", path, " are ", dirs);
const dirsEndingWithSol = dirs.filter((dirent) => dirent.name.endsWith(endingWith));
return dirsEndingWithSol;
} catch (err) {
Expand Down
Loading