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

Soloseng/validator-test-foundry-migration #10914

Merged
merged 60 commits into from
Mar 5, 2024

Conversation

soloseng
Copy link
Contributor

@soloseng soloseng commented Jan 26, 2024

Other Changes

Updated the celo-foundry submodule, to point to a different commit hash, where the precompile handler uses bytes instead of bytes32 for its mock functions.

I added two new files to help with the generating ECDSA public key. These contracts are based on 0xcyphered/secp256k1-solidity, but use solidity version 0.5.13 instead.

Tested

Unit test

Related issues

@soloseng soloseng marked this pull request as ready for review February 28, 2024 18:37
@soloseng soloseng requested a review from a team as a code owner February 28, 2024 18:37
@soloseng soloseng self-assigned this Feb 28, 2024
@soloseng
Copy link
Contributor Author

I'm a bit skeptical about the validity of the test that mock the return value of FRACTION_MUL().

Specifically the tests in ValidatorsTest_CalculateEpochScore && ValidatorsTest_CalculateGroupEpochScore since they don't actually test the FRACTION_MUL() .

Thoughts?

@pahor167
Copy link
Contributor

pahor167 commented Mar 4, 2024

Good job!

Copy link

openzeppelin-code bot commented Mar 4, 2024

Soloseng/validator-test-foundry-migration

Generated at commit: 4f231aac6c4708eac0802999242a7afa8b0e1b32

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
3
0
15
39
59
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@soloseng soloseng enabled auto-merge (squash) March 4, 2024 22:35
@soloseng soloseng merged commit 2e18dde into master Mar 5, 2024
26 checks passed
@soloseng soloseng deleted the soloseng/validator-test-foundry-migration branch March 5, 2024 18:08
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.

test/governance/validators/validators.ts
2 participants