Skip to content

Conversation

@devtooligan
Copy link
Contributor

The intent of this pr is to fix a mistake in the first coding example:

contract TestContract is DSTest, stdError {

No need to import stdError, and doing so throws:
Screen Shot 2022-03-07 at 9 53 19 AM

Also, while I had the readme open I cleaned up a few very minor spelling/grammar things.

## Contracts
### stdError

This is a helper contract for errors and reverts in solidity. In `forge`, this contract is particularly helpful for the `expectRevert` cheatcode, as it provides all compiler builtin errors.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was gonna capitalize Solidity but then thought maybe its better just to delete it...

import "forge-std/stdlib.sol";
import "forge-std/Vm.sol";
contract TestContract is DSTest, stdError {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the main change

@ZeroEkkusu ZeroEkkusu requested a review from brockelmore March 8, 2022 12:21
Copy link
Collaborator

@ZeroEkkusu ZeroEkkusu left a comment

Choose a reason for hiding this comment

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

Thanks! Looks good.
Requested a review from brock, although there's not much else to see here.

Copy link
Member

@brockelmore brockelmore left a comment

Choose a reason for hiding this comment

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

lgtm thanks :)

@brockelmore brockelmore merged commit c31c597 into foundry-rs:master Mar 8, 2022
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.

3 participants