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

refactor(contracts): revisit functions visibility and inheritance #1210

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

ctrlc03
Copy link
Collaborator

@ctrlc03 ctrlc03 commented Feb 19, 2024

Description

Ensure contracts integrating MACI can override certain functions, as well as use public for functions which are likely to be called from within an inheriting contract. Also remove private for constants in favour of internal.

Confirmation

Copy link

netlify bot commented Feb 19, 2024

Deploy Preview for maci-typedoc ready!

Name Link
🔨 Latest commit f729336
🔍 Latest deploy log https://app.netlify.com/sites/maci-typedoc/deploys/65d3cbfa5f4e6500088bea4d
😎 Deploy Preview https://deploy-preview-1210--maci-typedoc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -30,10 +30,10 @@
MaxValues calldata _maxValues,
TreeDepths calldata _treeDepths,
PubKey calldata _coordinatorPubKey,
IMACI _maci,
address _maci,

Check warning

Code scanning / Slither

Conformance to Solidity naming conventions Warning

@ctrlc03 ctrlc03 force-pushed the refactor/contracts-integration branch from aaaa2af to 5cdccfc Compare February 19, 2024 15:16
Copy link
Collaborator

@0xmad 0xmad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ctrlc03 thanks!

Ensure contracts integrating MACI can override certain functions, as well as use public for
functions which are likely to be called from within an inheriting contract. Also remove private for
constants in favour of internal.
@ctrlc03 ctrlc03 force-pushed the refactor/contracts-integration branch from 5cdccfc to f729336 Compare February 19, 2024 21:45
@ctrlc03 ctrlc03 enabled auto-merge February 19, 2024 21:45
@ctrlc03 ctrlc03 merged commit 96db616 into dev Feb 19, 2024
19 checks passed
@ctrlc03 ctrlc03 deleted the refactor/contracts-integration branch February 19, 2024 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants