我正在使用带有松露和ganache-cli的Windows 10。我有2个要部署的合同文件,其中包含该合同中定义的其他合同的接口:
合同:
ERC721Mintable.sol
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);
}
这是我的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);
});
};
我正在使用松露5.0.18版
产生的错误:错误:错误:找不到工件 来自任何来源的SolnSquareVerifier
答案 0 :(得分:0)
您的合同名称SolnSqaureVerifier
中有一个错字,应该是SolnSquareVerifier