MolochVentures / moloch

👹 Moloch whose mind is pure machinery! Moloch whose blood is running money!
MIT License
670 stars 264 forks source link

Tests fail with Error BDLR700: Artifact for contract "Token" not found. #83

Open akhavr opened 4 years ago

akhavr commented 4 years ago
...
> bash scripts/test.sh

Starting our own ganache instance
Waiting for ganache to launch on port 8545...
Ganache launched!
Buidler version 1.1.2
Compiling...
Downloading compiler version 0.5.3

contracts/Moloch.sol:700:57: Warning: This declaration shadows an existing declaration.
    function fairShare(uint256 balance, uint256 shares, uint256 totalShares) internal pure returns (uint256) {
                                                        ^-----------------^
contracts/Moloch.sol:53:5: The shadowed declaration is here:
    uint256 public totalShares = 0; // total shares across all members
    ^----------------------------^

contracts/Moloch.sol:494:5: Warning: Function state mutability can be restricted to view
    function _didPass(uint256 proposalIndex) internal returns (bool didPass) {
    ^ (Relevant source part starts here and spans across multiple lines).

Compiled 7 contracts successfully
Error BDLR700: Artifact for contract "Token" not found.

For more info go to https://buidler.dev/BDLR700 or run Buidler with --show-stack-traces
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! moloch@1.0.0 test: `bash scripts/test.sh`
npm ERR! Exit status 1
npm ERR! 
...

Maybe they weren't updated since migration from v1?