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

Easy Fix : add support for the truffle contracts directory #37

Open
davidawad opened this issue Feb 23, 2022 · 3 comments
Open

Easy Fix : add support for the truffle contracts directory #37

davidawad opened this issue Feb 23, 2022 · 3 comments

Comments

@davidawad
Copy link

The code currently doesn't look in the truffle config file for a contracts directory, it just looks in the repo root:

if not (project_path / "contracts").exists():

I should be able to use the configured truffle directory if I wanted to.

module.exports = {
  contracts_directory: "./src/contracts",
  networks: {

Should be an easy fix, if you really need I can make the PR :)

@davidawad
Copy link
Author

The same applies to the build folder.

I had to create a pile of symlinks to be able to run vertigo from nonstandard directories.

ln -s src/contracts contracts
mkdir build
cd build 
ln -s ../src/abis contracts

@BitBravo
Copy link

cd build
ln -s ../src/abis contracts

It doesn't work.
This will fix the contract directory issue, but when try to build for testing, will get new errors.

@BitBravo
Copy link

I fixed it like this.

  • compile contracts
  • move or copy apis to build dir

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

No branches or pull requests

2 participants