-
Notifications
You must be signed in to change notification settings - Fork 9
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
chore: Switch to Foundry (SC-4852) #14
Conversation
This pull request has been linked to Shortcut Story #4852: [erc20] Update repo to use forge. |
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.
Small changes
contracts/test/ERC20.t.sol
Outdated
@@ -93,7 +93,7 @@ contract ERC20Test is DSTest { | |||
} | |||
} | |||
|
|||
function proveFail_transfer_insufficientBalance(address to, uint256 mintAmount, uint256 sendAmount) public { | |||
function testFail_transfer_insufficientBalance(address to, uint256 mintAmount, uint256 sendAmount) public { |
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.
lets update these to use vm.expectRevert
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.
Also lets just fuzz one amount and use the edge case
.github/workflows/pull-request.yml
Outdated
run: forge update | ||
|
||
- name: Run forge tests | ||
run: ./test.sh -r 100000 |
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.
Need to use foundry.toml and profiles - refer to rdt
Description
Integrations Checklist
Changelog
Function Signature Changes
Features
Events