-
Notifications
You must be signed in to change notification settings - Fork 157
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(contracts): enforce msgType = 1 for vote messages at the contract level #1201
Conversation
✅ Deploy Preview for maci-typedoc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -163,7 +163,7 @@ | |||
} | |||
|
|||
/// @inheritdoc IPoll | |||
function publishMessage(Message calldata _message, PubKey calldata _encPubKey) public virtual isWithinVotingDeadline { | |||
function publishMessage(Message memory _message, PubKey calldata _encPubKey) public virtual isWithinVotingDeadline { |
Check warning
Code scanning / Slither
Conformance to Solidity naming conventions Warning
@@ -163,7 +163,7 @@ | |||
} | |||
|
|||
/// @inheritdoc IPoll | |||
function publishMessage(Message calldata _message, PubKey calldata _encPubKey) public virtual isWithinVotingDeadline { | |||
function publishMessage(Message memory _message, PubKey calldata _encPubKey) public virtual isWithinVotingDeadline { |
Check warning
Code scanning / Slither
Conformance to Solidity naming conventions Warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ctrlc03 thanks!
LGTM! |
e67d027
to
c547e9c
Compare
Description
Reduce likeliness of issues in the circuits by constraining at the contract level that vote message are type 1.
Confirmation