-
Notifications
You must be signed in to change notification settings - Fork 4
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
Remove special casing of first add #86
Conversation
…ampling and proving respectively
c2de7f2
to
c9fc9e5
Compare
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.
@ZenGround0 Left first round of comments. Will do one more round once you address these.
src/PDPVerifier.sol
Outdated
@@ -388,6 +384,8 @@ contract PDPVerifier is Initializable, UUPSUpgradeable, OwnableUpgradeable { | |||
uint256 challengeEpoch = nextChallengeEpoch[setId]; | |||
require(block.number >= challengeEpoch, "premature proof"); | |||
require(proofs.length > 0, "empty proof"); | |||
require(challengeEpoch != NO_CHALLENGE_SCHEDULED, "no challenge scheduled"); | |||
require(proofSetOwner[setId] == msg.sender, "only the owner can prove possession"); |
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.
@ZenGround0 This check already exists above and is a duplicate.
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.
Thanks
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.
@ZenGround0 Lgtm. Just need to fix the duplicate check for owner in provePossesion
in the PDPVerifier
contract.
Closes #