Skip to content
This repository was archived by the owner on Jun 14, 2018. It is now read-only.
This repository was archived by the owner on Jun 14, 2018. It is now read-only.

README outdated? #49

Description

@jtakalai

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions