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

feat(protocol): add more events in automata #17195

Merged
merged 1 commit into from
May 15, 2024

Conversation

smtmfft
Copy link
Contributor

@smtmfft smtmfft commented May 15, 2024

No description provided.

Copy link

feat(protocol): add more events in automata

Generated at commit: 141e8797eb98ff4cb846806487707aa94901d0e2

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
2
0
6
41
51
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@@ -70,14 +70,22 @@ contract AutomataDcapV3Attestation is IAttestation, EssentialContract {
pemCertLib = PEMCertChainLib(pemCertLibAddr);
}

event SetMrSigner(bytes32);
Copy link
Contributor

Choose a reason for hiding this comment

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

please give variabls name.

Copy link
Contributor

Choose a reason for hiding this comment

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

please also run pnpm lint:sol

event ConfigQeIdentity(bytes32);
event ToggleLocalReportCheck(bool);
event AddRevokedCertSerialNum(uint256, bytes);
event RemoveRevokedCertSerialNum(uint256, bytes);
Copy link
Contributor

Choose a reason for hiding this comment

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

you may also want to add indexed keyword to certain events.

@@ -92,7 +100,7 @@ contract AutomataDcapV3Attestation is IAttestation, EssentialContract {
continue;
}
serialNumIsRevoked[index][serialNumBatch[i]] = true;
// TODO(yue): emit an event
emit AddRevokedCertSerialNum(index, serialNumBatch[i]);
Copy link
Contributor

Choose a reason for hiding this comment

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

how about rename addRevokedCertSerialNum to revokeCertSerialNum, then rename event to CertSerialNumRevoked.

I also suggest to rename other events to xxxAdded, xxxRemoved, xxxConfigured, xxxSet

@dantaik dantaik merged commit ee37226 into suggest_changes_in_AutomataDcapV3Attestation May 15, 2024
4 checks passed
@dantaik dantaik deleted the update-todo branch May 15, 2024 06:28
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