-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
returns null on new web3.eth.Contract(abi).deploy() #1147
Comments
Looks like I had to do this:
|
so, without setting actual bytecode, I can't estimateGas/encodeABI which defeats the purpose. |
I was stupid, of course you have to supply data, what I was thinking? |
I was stupid and did the same thing, @rstormsf. Would be nice for missing bytecode to throw an exception rather than return null... |
2020 I was dumb and did it without the bytecode but it seems the fault of the docs not telling you must add it! also make you sure you add 0x before a bytecode string |
"web3": "^1.0.0-beta.24"
why?
The text was updated successfully, but these errors were encountered: