You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 14, 2018. It is now read-only.
It seems truffle-artifactor doesn't work at all as described in the README.md:
var artifactor = require("truffle-artifactor");
artifactor.save({/*...*/}, "./wrappers/MyContract.sol.js") // => a promise
// Later...
var MyContract = require("./wrappers/MyContract.sol.js");
Instead (digging the tests) it seems to work more like this:
var Artifactor = require("truffle-artifactor")
var artifactor = new Artifactor("./wrappers")
artifactor.save({contract_name: "MyContract", /*...*/}) // => a promise
I'm not sure how to write the // Later... part though, since save only seems to generate a .json file, not sol.js. I don't think require("./wrappers/MyContract.json") would be going to do much good...
Any chance README.md could be updated, or at least please point to documentation on how to use truffle-artifactor the way it currently is?
It seems truffle-artifactor doesn't work at all as described in the README.md:
Instead (digging the tests) it seems to work more like this:
I'm not sure how to write the
// Later...part though, sincesaveonly seems to generate a .json file, not sol.js. I don't thinkrequire("./wrappers/MyContract.json")would be going to do much good...Any chance README.md could be updated, or at least please point to documentation on how to use truffle-artifactor the way it currently is?