Big picture: How do I get multiple contract instances from a single sol file using truffle-contract?
I have two Contracts in my .sol file (it's more of a contract factory)
const artifacts = require('../build/contracts/Contract.json');
const contract = require('truffle-contract');
const MyContract = contract(artifacts);
How do create an instance of the 2nd contract using truffle-contract? when i'm testing in mocha i can do
const SecondContract = artifacts.require("SecondContract");
but for some reason in truffle exec i get
TypeError: artifacts.require is not a function