I'm writing 2 smart contracts: one is a satellite of the other. That is contract A is calling contract B. When I migrate in truffle all is OK, but when I try to run the tests it is not working. Is there any syntax or config file to modify to make it work?

The below is the migrations file used

var One = artifacts.require("./LoanDataStorage");
var Two = artifacts.require("./LoanBusinessLogic");

module.exports = (deployer, network) => {
  deployer.deploy(One).then(function() {
    return deployer.deploy(Two, One.address)
  • 2
    What do you mean by "it is not working" ? What is the error ? – Florian Castelain Dec 26 '19 at 7:51
  • We need the error, the contracts and the test to have a chance. The issue likely isn't in your migrations. – Rob Hitchens Dec 27 '19 at 1:28
  • Hi Guys thank you for your interest but I solved it.. It was an issue in the paths of the contracts source code – Zunga 2019 Dec 31 '19 at 8:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.