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

Defender deployment fails if multiple build info files have the same contract #57

Open
ericglau opened this issue Jun 18, 2024 · 0 comments

Comments

@ericglau
Copy link
Member

Defender deployments occur by passing the build info file containing the contract to the Defender SDK.

This plugin attempts to find the build info file by looking for the contract's source code hash within the build info directory. However, if the source code hash appears in multiple build info files, multiple build info files could be found but the result is one string concatenated by "\n". This causes an error when this string is passed to the Defender SDK.

This may be occurring in the

function getBuildInfoFile(
function.

We should detect this condition and give an appropriate error -- for example, with instructions to clean the project first.

Originally reported in https://forum.openzeppelin.com/t/cannot-find-option-to-do-multiple-chain-deployment-with-foundry-using-defender-v2-deploy/40708/7

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

No branches or pull requests

1 participant