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

are docs wrong/outdated ? #1200

Closed
wallaceturner opened this issue Nov 27, 2017 · 2 comments
Closed

are docs wrong/outdated ? #1200

wallaceturner opened this issue Nov 27, 2017 · 2 comments

Comments

@wallaceturner
Copy link

wallaceturner commented Nov 27, 2017

Docs for simple things like balance and contracts seem wrong:
e.g. docs for contracts

var MyContract = web3.eth.contract(abiArray);

// instantiate by address
var contractInstance = MyContract.at(address);

when in fact this doesnt work and should be

var MyContract = new web3.eth.Contract(abiArray, address);

There are plenty more examples. even something like

web3.fromWei

is supposed to be

web3.utils.fromWei

@MrTibbles
Copy link

MrTibbles commented Nov 27, 2017

If you are using master those docs are correct, if you are using 1.0 they are outdated and you should refer to these

@frozeman
Copy link
Contributor

I added a note on top of the old docs. Thanks @MrTibbles for advising him.

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

3 participants