3

I am using windows 10 with truffle and ganache-cli. I have 2 contracts file to be deployed contain interfaces of other contracts defined within the contract:

Contracts:

ERC721Mintable.sol

  • Ownable
  • Pausable is Ownable
  • ERC165
  • ERC721 is Pausable, ERC165
  • ERC721Enumerable is ERC165, ERC721
  • ERC721MetaData is ERC721Enumerable, usingOraclize
  • CraveuERC721Token is ERC721MetaData

Verifier.sol

SolnSquareVerifier.sol

pragma solidity >=0.4.21 <0.6.0;

import "./ERC721Mintable.sol";
import "./Verifier.sol";

contract SolnSqaureVerifier is CraveuERC721Token {

    SquareVerifier squareVerifier;

    constructor(address verifierAddress) public {
        squareVerifier = SquareVerifier(verifierAddress);
    }

Here's my deploy_contracts.js:

const SquareVerifier = artifacts.require("Verifier");
const SolnSquareVerifier = artifacts.require("SolnSquareVerifier");

module.exports = function(deployer) {
  deployer.deploy(SquareVerifier).then( () => {
    return deployer.deploy(SolnSquareVerifier, SquareVerifier.address);
  });
};

I am using truffle version 5.0.18

Error Produced: Error: Error: Could not find artifacts for SolnSquareVerifier from any sources

Sagar Atalatti
  • 486
  • 1
  • 8
  • 21

2 Answers2

4

There is a typo in your contract name SolnSqaureVerifier, it should be SolnSquareVerifier

Vitaly Migunov
  • 4,297
  • 2
  • 19
  • 23
0

Rename the .sol file in contract folder to any name that you want. Then truffle migrate again.