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 solidity compilation #120

Merged
merged 4 commits into from
Jan 6, 2025
Merged

Fix solidity compilation #120

merged 4 commits into from
Jan 6, 2025

Conversation

awrichar
Copy link
Contributor

@awrichar awrichar commented Jan 3, 2025

I am currently unable to compile the Solidity contracts or unit tests, primarily due to usage of Arrays.sort(), which isn't present in version 5.0.1 of the OpenZeppelin contracts. I think this is due to the missing package-lock.json file, which means the npm install is unpredictable.

This updates the version of the OpenZeppelin dependency to 5.1.0 and adds back the package-lock.json file, so that Arrays.sort() is available. It also aligns the Solidity version pragma with the current version in the Hardhat config.

This matches the current compiler settings in hardhat.config.ts

Signed-off-by: Andrew Richardson <[email protected]>
The current Zeto contracts use Array.sort(), which was added in 5.1.0. They do
not compile with earlier versions of the library.

Signed-off-by: Andrew Richardson <[email protected]>
@jimthematrix jimthematrix merged commit cb39891 into main Jan 6, 2025
6 checks passed
@jimthematrix jimthematrix deleted the fix-contracts branch January 6, 2025 04:17
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