Skip to content

Conversation

@0xOneTony
Copy link
Member

Closes OPT-971

@linear
Copy link

linear bot commented Aug 6, 2025

@0xOneTony 0xOneTony requested review from 0xiamflux and agusduha August 6, 2025 11:52

// since the attestations are updated daily we should only allow attestations
// created before the last voting cycle of the proposal
// check if attestation was created after the previous voting cycle
Copy link
Member

Choose a reason for hiding this comment

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

Should we fix this comment too?

Copy link
Member Author

@0xOneTony 0xOneTony Aug 6, 2025

Choose a reason for hiding this comment

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

I removed the last comment, I think this is good, wdyt?

        // since the attestations are updated daily we should only allow attestations
        // created before the last voting cycle of the proposal

@0xiamflux
Copy link

Do we have a test for the ProposalValidator_AttestationCreatedAfterLastVotingCycle error? Other than that, looks good.

@0xOneTony
Copy link
Member Author

Do we have a test for the ProposalValidator_AttestationCreatedAfterLastVotingCycle error? Other than that, looks good.

We totally should! Great catch 🔥

@0xOneTony 0xOneTony merged commit ca8fb7d into sc-feat/permissionless-proposals Aug 8, 2025
3 checks passed
@0xOneTony 0xOneTony deleted the fix/add-approve-check branch August 13, 2025 16:02
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.

4 participants