{"id":19762790,"url":"https://github.com/dutterbutter/min-zksync-create2","last_synced_at":"2026-05-13T11:31:59.129Z","repository":{"id":256988255,"uuid":"856455349","full_name":"dutterbutter/min-zksync-create2","owner":"dutterbutter","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-12T17:04:49.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-23T11:02:42.626Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dutterbutter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-12T15:49:50.000Z","updated_at":"2025-01-14T08:26:05.000Z","dependencies_parsed_at":"2025-02-28T03:47:16.538Z","dependency_job_id":"e0672878-cf23-4e3d-a915-bbd4e7416136","html_url":"https://github.com/dutterbutter/min-zksync-create2","commit_stats":null,"previous_names":["dutterbutter/min-zksync-create2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dutterbutter/min-zksync-create2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dutterbutter%2Fmin-zksync-create2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dutterbutter%2Fmin-zksync-create2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dutterbutter%2Fmin-zksync-create2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dutterbutter%2Fmin-zksync-create2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dutterbutter","download_url":"https://codeload.github.com/dutterbutter/min-zksync-create2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dutterbutter%2Fmin-zksync-create2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32980660,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T06:31:55.726Z","status":"ssl_error","status_checked_at":"2026-05-13T06:31:51.336Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T04:06:59.067Z","updated_at":"2026-05-13T11:31:59.077Z","avatar_url":"https://github.com/dutterbutter.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# min-zksync-create2\n\nThis repository demonstrates how to compute and deploy contracts using `create2` on ZKsync and compares it to traditional EVM-based chains. It provides tests for deploying smart contracts using `create2` on both ZKsync and EVM, allowing you to observe the differences between the two implementations.\n\n## Prerequisites\n\nEnsure that you have `foundry-zksync` installed. Follow the installation instructions in the [Foundry-zksync repository](https://github.com/matter-labs/foundry-zksync?tab=readme-ov-file#quick-install).\n\n## Getting Started\n\nTo get started with this repository, follow the steps below:\n\n### 1. Clone the repository\n\n```bash\ngit clone git@github.com:dutterbutter/min-zksync-create2.git\n```\n\nNavigate into the project directory:\n\n```bash\ncd min-zksync-create2\n```\n\n### 2. Install Dependencies\n\nInstall the necessary dependencies using `forge`:\n\n```bash\nforge install\n```\n\n### 3. Build the Project for ZKsync\n\nTo build the project for ZKsync, run:\n\n```bash\nforge build --zksync\n```\n\nYou may encounter a compilation error due to a placeholder value in the system contracts library.\n\n### 4. Fix the Compilation Error\n\nTo fix the compilation error, navigate to the `Constants.sol` file in the `era-contracts` library and replace the placeholder value with the actual system contract offset value:\n\n- File: `lib/era-contracts/system-contracts/contracts/Constants.sol:20:44`\n  \n- Change:\n\n```solidity\nuint160 constant SYSTEM_CONTRACTS_OFFSET = {{SYSTEM_CONTRACTS_OFFSET}}; // 2^15\n```\n\n- To:\n\n```solidity\nuint160 constant SYSTEM_CONTRACTS_OFFSET = 0x8000; // 2^15\n```\n\n### 5. Run Tests\n\nAfter fixing the compilation error, you can run the tests for both zkSync and EVM-based chains to observe the differences.\n\n#### Running Tests on ZKsync\n\nTo run the tests on ZKsync, use the following command:\n\n```bash\nforge test --match-path test/Create2ZK.t.sol --zksync --enable-eravm-extensions -vvvv\n```\n\n#### Running Tests on EVM\n\nTo run the tests on an EVM-based chain, use the following command:\n\n```bash\nforge test --match-path test/Create2Test.t.sol -vvv\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdutterbutter%2Fmin-zksync-create2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdutterbutter%2Fmin-zksync-create2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdutterbutter%2Fmin-zksync-create2/lists"}