Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import smart contracts from node_modules #3

Open
7flash opened this issue Nov 16, 2018 · 1 comment
Open

import smart contracts from node_modules #3

7flash opened this issue Nov 16, 2018 · 1 comment

Comments

@7flash
Copy link
Contributor

7flash commented Nov 16, 2018

How can I import smart contract from node_modules?

@nourharidy
Copy link
Member

We're currently working on a tool to simplify the task. But to answer your question, in the meantime, you need to import the address of your contract from addressbook.json and the contract ABI from the ABI/ directory in order to create a web3.eth.Contract instance using both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants