-
Notifications
You must be signed in to change notification settings - Fork 7
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
add CommunityVault contract #22
Conversation
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.
Great start!
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.
This LGTM, just some minor comments and I believe this code doesn't manage to get past the linter.
amounts[0] = 1; | ||
amounts[1] = 1; | ||
|
||
vm.prank(accounts[0]); |
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.
The test contract itself is going to be msg.sender
by default, so no vm.prank()
needed here.
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 would prefer to have it explicitly written in case we change the way we deploy in the future, wdyt?
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.
That's perfectly fine. Was not an actionable comment.
c071b8a
to
45c3ca5
Compare
7d8d74f
to
48b6ca7
Compare
@0xb337r007 this LGTM! I'd just ask you to squash the commits as we don't need to have the steps where stuff didn't get past the linter etc. |
@0x-r4bbit cool I squashed and merged it |
I did it directly here in UI |
Description
Describe the changes made in your pull request here.
Checklist
Ensure you completed all of the steps below before submitting your pull request:
forge snapshot
?pnpm lint
?forge test
?