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

You must provide the json interface of the contract when instantiating a contract object #2032

Closed
jameszou707 opened this issue Nov 2, 2018 · 5 comments

Comments

@jameszou707
Copy link

jameszou707 commented Nov 2, 2018

when i try to get a contract object with web3 from Rinkelby net , here comes a error out :

image

error msg: Error: You must provide the json interface of the contract when instantiating a contract object.

@jameszou707
Copy link
Author

jameszou707 commented Nov 2, 2018

Solution: then we found if we change the web3 version from 1.0.0-beta.36 back to 1.0.0-beta.35 , the bug disappeared:

npm install --save [email protected]

@Aniket-Engg
Copy link

Possible reason of throwing error are : Either ABI is not provided or ABI is not an array as per the code below.

if(!jsonInterface || !(Array.isArray(jsonInterface))) {
        throw new Error('You must provide the json interface of the contract when instantiating a contract object.');
    }

And this has not changed from beta.35 to beta.36

@nivida
Copy link
Contributor

nivida commented Nov 28, 2018

I'm closing this issue because it seems like it isn't an issue of web3.

@nivida nivida closed this as completed Nov 28, 2018
@elvioorg
Copy link

when i try to get a contract object with web3 from Rinkelby net , here comes a error out :

image

error msg: Error: You must provide the json interface of the contract when instantiating a contract object.

@GregTheGreek
Copy link
Contributor

Please open a new issue

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

5 participants