colinnielsen / safe-tools

Foundry tools for testing with Gnosis Safes
MIT License
139 stars 18 forks source link

Doesn't seem to work with latest foundry imports #11

Open borislav-itskov opened 2 months ago

borislav-itskov commented 2 months ago

First, I did: forge install git@github.com:colinnielsen/safe-tools.git.
After, I tried to import the tools by doing the following:

import {SafeTestTools} from "safe-tools/SafeTestTools.sol";

And it doesn't find the library. I guess it doesn't work with foundry's latest imports?

If i try to import it with ../lib/src/..., it finds the file, but in SafeTestTools.sol there are other import problems - import "safe-contracts/Safe.sol"; for example is not found

colinnielsen commented 2 months ago

First, I did: forge install git@github.com:colinnielsen/safe-tools.git. After, I tried to import the tools by doing the following:

import {SafeTestTools} from "safe-tools/SafeTestTools.sol";

And it doesn't find the library. I guess it doesn't work with foundry's latest imports?

If i try to import it with ../lib/src/..., it finds the file, but in SafeTestTools.sol there are other import problems - import "safe-contracts/Safe.sol"; for example is not found

Has Foundry changed their import setup? My guess is that your remappings need to be configured in your foundry.toml

colinnielsen commented 5 days ago

First, I did: forge install git@github.com:colinnielsen/safe-tools.git. After, I tried to import the tools by doing the following:

import {SafeTestTools} from "safe-tools/SafeTestTools.sol";

And it doesn't find the library. I guess it doesn't work with foundry's latest imports?

If i try to import it with ../lib/src/..., it finds the file, but in SafeTestTools.sol there are other import problems - import "safe-contracts/Safe.sol"; for example is not found

LMK about this or I will close this issue