Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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.
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.
Required, but never shown