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

Fix map for claimed prizes #5

Conversation

dylandesrosier
Copy link
Contributor

No description provided.

@@ -656,25 +657,29 @@ contract PrizePoolTest is Test {
}

function testWasClaimed_not() public {
assertEq(prizePool.wasClaimed(msg.sender, 0, 0), false);
assertEq(prizePool.wasClaimed(vault, msg.sender, 0, 0), false);
assertEq(prizePool.wasClaimed(vault2, msg.sender, 0, 0), false);
}

function testWasClaimed_single() public {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should add a test that claims from two diff vaults

@asselstine asselstine merged commit fb25577 into main Jul 6, 2023
0 of 2 checks passed
@asselstine asselstine deleted the dylan/gen-53-prizepool-bug-users-should-be-able-to-claim-the-same-prize branch July 6, 2023 23:46
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.

None yet

2 participants