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 deploy imports #82

Merged
merged 1 commit into from
Apr 7, 2024
Merged

Conversation

xhad
Copy link
Contributor

@xhad xhad commented Apr 6, 2024

Problem

After deploying and trying to verify contract on etherscan, I got an error stating the Bytecode onchain didn't match what was being verified. So I looked into the contract in the deploy scripts and noticed there were unused contracts being deployed from import * "some-contract"; that were failing the etherscan verify script.

Changed to Alias imports

This allows granular control over which contracts are being imported and prevents unused imports.

Copy link

@xhad xhad changed the base branch from main to release-candidate April 6, 2024 07:06
@xhad xhad requested a review from danoctavian April 6, 2024 07:06
@danoctavian
Copy link
Contributor

good, strange that the imports in the scripts affected the final deploy content

@danoctavian danoctavian merged commit c464b25 into release-candidate Apr 7, 2024
1 check passed
@xhad xhad deleted the chad/sc-573/fix-deploy-imports branch April 15, 2024 21:02
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.

2 participants