New answers tagged

0

In the migrations directory you have to reference the deployments for any new contracts. In this case that is the file 2_deploy_contracts.js: var ProofOfExistence1 = artifacts.require('./ProofOfExistence1.sol'); var ProofOfExistence2 = artifacts.require('./ProofOfExistence2.sol'); module.exports = function(deployer) { deployer.deploy(ProofOfExistence1)...


0

In case anyone comes here looking for an answer, I've figured it out. I changed how I instance my contract. I create a separate js file to store an object with all the contract data; module.exports = { address: "(Your-Contract-Address-Goes_here)", abi: [ { (Your-Contract-ABI-goes-here) } ] } then to create the instance, I get Web3 and ...


Top 50 recent answers are included