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: migrate to use zkforge artifacts #471

Open
wants to merge 3 commits into
base: release-v23
Choose a base branch
from

Conversation

aon
Copy link
Contributor

@aon aon commented May 14, 2024

What ❔

  • Migrates to use zkforge artifacts intead of hardhat

@@ -17,7 +17,7 @@ import {IPubdataChunkPublisher} from "./interfaces/IPubdataChunkPublisher.sol";

/// @dev All the system contracts introduced by zkSync have their addresses
/// started from 2^15 in order to avoid collision with Ethereum precompiles.
uint160 constant SYSTEM_CONTRACTS_OFFSET = {{SYSTEM_CONTRACTS_OFFSET}}; // 2^15
uint160 constant SYSTEM_CONTRACTS_OFFSET = 32768; // 2^15
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR changes the hash of the system contract most likely because of this change.

  1. We need this preprocessing to run unit tests for system contracts (as you can see, the tests fail now)
  2. The hashes for system contracts change (making this PR not okay for the release-* branch, but more suitable for dev one where non stable changes are allowed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants