-
Notifications
You must be signed in to change notification settings - Fork 2
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
Handle Votes outside of voting period #42
Handle Votes outside of voting period #42
Conversation
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
7ae93fd
to
f2ffc4e
Compare
c265997
to
df0ae18
Compare
f2ffc4e
to
3f0cb5d
Compare
df0ae18
to
675d890
Compare
a7e5bfe
to
3700d27
Compare
7a7fe72
to
85be767
Compare
l1Erc20.mint(address(this), uint96(_l2Against) + _l2InFavor + _l2Abstain); | ||
l1Erc20.delegate(address(l1VotePool)); | ||
|
||
uint256 _proposalId = l1VotePool.createProposalVote(address(l1Erc20)); |
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.
i love the test harness, although i sometimes get confused whether we're calling a contract method or harness method. I see _jumpToProposalEnd
, a harness method, is prefixed with underscore. Should we prefix all harness methods with underscores?
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.
We have another issue to update the Harness to have an exposed
prefix to make this clearer hopefully. #45
@@ -163,6 +163,32 @@ contract CastVote is L2VoteAggregatorTest { | |||
l2VoteAggregator.castVote(1, _support); | |||
} | |||
|
|||
function testFuzz_RevertWhen_AfterCastWindow( | |||
uint96 _amount, |
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.
why are two params underscore prefix, but the others aren't?
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.
Good question, I will giv them all a prefix
test/WormholeL2VoteAggregator.t.sol
Outdated
uint96 _amount, | ||
uint8 _support, | ||
uint256 proposalId, | ||
uint64 timeToProposalEnd |
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.
uint64 timeToProposalEnd | |
uint64 proposalDuration |
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.
85be767
to
909b52b
Compare
Coverage after merging chore/add-tests-for-handling-votes-outside-testing-period into main will be
Coverage Report
|
Description
Related to #32