Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #453 and #462
Problem:
Solution:
Deployment:
1. step
npm i --save-dev @matterlabs/hardhat-zksync-deploy
2. step
Add these to hardhat config:
Add ethereum and zksync to the networks in hardhat-config.
Example for zksync:
3. step
Clone https://github.com/safe-global/safe-singleton-factory and fill out env. Run
yarn compile:zk
thenyarn submit
4. step
Use the generated artifacts and define the
deterministicDeployment
based on this description: https://github.com/wighawag/hardhat-deploy?tab=readme-ov-file#4-deterministicdeployment-ability-to-specify-a-deployment-factory5. step
Set contracts path in hardhat config to diamond contracts or create a copy of them.
6. step
In deploy script: