1

HI consider i have 3 smart contracts A,B,C. I have a separate file D.sol which is an interface used in all A,B and C. What would the migration script look like for this project?

1 Answer 1

1

pragma solidity ^0.4.0;

contract D { function doit() returns (bool) { return true; } }

////////////////////////////////////////////////////

pragma solidity ^0.4.0;

import "./D.sol";

contract A { D d = new D();

function dothat() returns (bool) {
    return false;
}

}

Try like this,it should work.

1
  • i only need the migration script for the project in javascript Mar 25, 2019 at 7:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.