1

I have a solidity file with:

contract X {
    // ...
    Y y;
    function X() {
       y = new Y();
    }
}

contract Y {
    // ...
}

But when I compile this contract using web3.eth.compile.solidity(code); I only get the ABI for contract Y. How do I get the ABI for each contract without putting them in seperate files?

1 Answer 1

1

I don't think compiling multiple contracts is supported via web3. You'll probably want to use solc directly for that.

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.