Easy Fix : add support for the truffle contracts directory
davidawad opened this issue · comments
The code currently doesn't look in the truffle config file for a contracts directory, it just looks in the repo root:
vertigo/eth_vertigo/cli/main.py
Line 81 in 52dde15
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 :)
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
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.
I fixed it like this.
- compile contracts
- move or copy apis to build dir