-
Notifications
You must be signed in to change notification settings - Fork 5k
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
web3.eth.contract is not a function #985
Comments
The API changed. This would work: var contract = new web3.eth.Contract(abi, contractAddress) Refer to the docs: http://web3js.readthedocs.io/en/1.0/web3-eth-contract.html#new-contract |
If the API changed, then why are the tests still using it in tests? |
@mbrooks You're on the wrong branch 😊 |
Its "C" now instead of "c" |
but how can call contract method in web3 beta version always show error unknown account not work unlock account here any solutions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Getting this when I am using 1.0.0-beta.18
during
var contract = web3.eth.contract(ABI).at(contractAddress);
The text was updated successfully, but these errors were encountered: