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

Add dependency on forge-std #5

Closed
wants to merge 2 commits into from

Conversation

rootulp
Copy link

@rootulp rootulp commented Mar 9, 2022

Fixes #4

Testing

forge build # succeeds
forge test # passes

Comment on lines 3 to 8
import "ds-test/test.sol";
import "../Ethernaut.sol";
import "./utils/vm.sol";
import "forge-std/Vm.sol";


contract AlienCodexTest is DSTest {

Choose a reason for hiding this comment

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

since vm is a standard library of forge-std/Test.sol so basically it can be shorter like this:

Suggested change
import "ds-test/test.sol";
import "../Ethernaut.sol";
import "./utils/vm.sol";
import "forge-std/Vm.sol";
contract AlienCodexTest is DSTest {
import "forge-std/Test.sol";
import "../Ethernaut.sol";
contract AlienCodexTest is Test {

openzeppelin-contracts/=/Users/rootulp/git/rootulp/ethernaut-x-foundry/lib/openzeppelin-contracts/
forge-std/=/Users/rootulp/git/rootulp/ethernaut-x-foundry/lib/forge-std/src/
ds-test/=/Users/rootulp/git/rootulp/ethernaut-x-foundry/lib/ds-test/src/

Choose a reason for hiding this comment

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

no need to have ds-test since it is included in forge-std

@rootulp rootulp closed this Aug 10, 2022
@rootulp rootulp deleted the rp/forge-std branch August 10, 2022 14:20
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.

Question: add dependency on forge-std
2 participants