3

Instead of separating each contract into it's own file, I'm wondering if/how I can interact with each individual contract one in a single .sol file through truffle console. Thanks.

2

truffle console will automatically load all contracts regardless of their organization into .sol files. However, if you want to reference them in tests, just do

contract = artifacts.require('MyContract')

Without the .sol.

  • Sorry for the delay in adding this as an answer for you.. – Michael O'Rourke Jul 25 '17 at 12: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.