-
Notifications
You must be signed in to change notification settings - Fork 275
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
validateUpgradeSafety: Cannot read properties of undefined (reading 'ast') #1126
Comments
Setland34
added a commit
to Setland34/openzeppelin-upgrades
that referenced
this issue
Feb 13, 2025
Fixes OpenZeppelin#1126 Handle undefined `ast` in `validateUpgradeSafety`. * Add a check in `checkNamespacesOutsideContract` to verify if `solcOutput.sources[source].ast` is undefined before accessing its `nodes` property. * Log a warning and skip the check if `solcOutput.sources[source].ast` is undefined. * Add a test case in `validate-upgrade-safety.test.ts` to verify the behavior when `solcOutput.sources[source].ast` is undefined. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/OpenZeppelin/openzeppelin-upgrades/issues/1126?shareId=XXXX-XXXX-XXXX-XXXX).
Hi @crystalbit, it looks like there is some inconsistency in your build artifacts, where the contract names in the solc output's In order for us to investigate this further, would you be able to provide the entire contents of your |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! I use
validateUpgradeSafety
on two folders:Folders are foundry build artifacts of same contracts from different times.
To make this more reproducible, I'll use folders with same files.
I have this error:
Then I try to do some logs in node_modules compiled js code I see that this error is while iterating on
EnumerableSet.sol
file.Can't find out what to do to skip it
The text was updated successfully, but these errors were encountered: