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

Enable proofs in tests #54

Merged
merged 4 commits into from
May 6, 2024
Merged

Enable proofs in tests #54

merged 4 commits into from
May 6, 2024

Conversation

kantp
Copy link
Collaborator

@kantp kantp commented May 6, 2024

This will take longer, but we could miss errors, in particular with the modular admin contract.

This PR does fix an error that was missed with proofsEnabled=false: with that option, the tests passed even when we were using inheritance to change the admin contract. But it fails if we enable the proofs.

kantp added 4 commits May 6, 2024 09:17
This will take longer, but we could miss errors, in particular with the modular admin contract.
Changing methods of smart contracts through inheritance is known not to work, so we're defining a
new contract providing the same methods instead.
This test that it's not possible to just provide another admin contract in order to bypass permissions.
@kantp kantp marked this pull request as ready for review May 6, 2024 09:50
@kantp kantp requested a review from harrysolovay as a code owner May 6, 2024 09:50
@kantp kantp removed the request for review from harrysolovay May 6, 2024 10:09
@kantp kantp merged commit 895bdb9 into main May 6, 2024
3 checks passed
@kantp kantp deleted the kantp/proofs-in-tests branch May 6, 2024 10:58
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