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

Avoid address clash when redeploying implementation #939

Merged
merged 7 commits into from
Dec 11, 2023

Conversation

ericglau
Copy link
Member

@ericglau ericglau commented Dec 8, 2023

Avoids checking for address clash when using forceImport or redeployImplementation: 'always'.

Address clashes should not occur in general, because it indicates a deployment is being attempted to an address which was already in the manifest, and such deployment should not occur if the bytecode version hash was the same before (unless using forceImport or redeployImplementation: 'always', which triggers a deployment regardless of an existing bytecode version hash).

Fixes #938

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@ericglau ericglau requested a review from a team December 8, 2023 22:12
ericglau and others added 2 commits December 10, 2023 22:07
Co-authored-by: Ernesto García <ernestognw@gmail.com>
@ericglau ericglau merged commit d7e77ee into OpenZeppelin:master Dec 11, 2023
@ericglau ericglau deleted the fixclash branch December 11, 2023 14:15
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.

Deployment clashes with existing when redeployImplementation: 'always' and using Defender with salt
2 participants