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

chore: Switch to Foundry (SC-4852) #14

Merged
merged 8 commits into from
Mar 1, 2022
Merged

Conversation

JGcarv
Copy link
Contributor

@JGcarv JGcarv commented Mar 1, 2022

Description

Integrations Checklist

  • Have any function signatures changed? If yes, outline below.
  • Have any features changed or been added? If yes, outline below.
  • Have any events changed or been added? If yes, outline below.
  • Has all documentation been updated?

Changelog

Function Signature Changes

Features

Events

@JGcarv JGcarv self-assigned this Mar 1, 2022
@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #4852: [erc20] Update repo to use forge.

Copy link

@lucas-manuel lucas-manuel left a comment

Choose a reason for hiding this comment

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

Small changes

@@ -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 {

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

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

run: forge update

- name: Run forge tests
run: ./test.sh -r 100000

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

@lucas-manuel lucas-manuel merged commit 49f5bbe into main Mar 1, 2022
@lucas-manuel lucas-manuel deleted the sc-4852-erc20-use-forge branch March 1, 2022 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants