JoranHonig / vertigo

Mutation Testing for Ethereum Smart Contracts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

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 :)

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