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

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.

| improve this answer | |
  • i only need the migration script for the project in javascript – Sundeep Kumar Mar 25 '19 at 7:30

Your Answer

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

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