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

Fix factory deps and re-deployment #541

Merged
merged 5 commits into from
Apr 28, 2024
Merged

Conversation

novaknole
Copy link
Contributor

@novaknole novaknole commented Apr 26, 2024

There were 2 very important problems with the deployment of zksync.

  1. It was the "the hash code is not known" problem and clearly, constructing the factory deps wasn't done in a correct way. See my issue: factoryDepths for zksync is incorrectly built #537

  2. The check to see whether it must re-deploy the contract or not was also misbehaving. Before this PR, the code was parsing the following transaction.data with rlp.decode, but since transaction.data is abi encoded string, this failed. You would notice that when re-deploying the contracts(instead of successfully skipping the deployments, it would fail).

Note that I haven't taken a good look into predeterminsitic deployments on zksync, but since i am not using it and I don't have lots of time, for now, this PR is all I can do. Tagging @wighawag for visibility.

@wighawag
Copy link
Owner

Thanks @novaknole I ll merge that in and any issues later we can fix, Does not seem to change other behavior in any case

@wighawag wighawag merged commit 4005d72 into wighawag:master Apr 28, 2024
2 checks passed
@wighawag
Copy link
Owner

available now in 0.12.4

@novaknole
Copy link
Contributor Author

Amazing, Thank you ^_^

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

Successfully merging this pull request may close these issues.

None yet

2 participants