-
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@1.0.0-beta.34 - personal_sign puts callback in json rpc params #2528
Comments
sounds like this issue affects other methods in addition to |
conclusion from MetaMask/metamask-extension#6262 (comment):
if you were using a callback before, it accidently includes the callback in the params in place of the password string. the callback is not json serializeable, thus throwing the error. |
This issue is a support issue and not a web3 bug. There was an issue with the provider which thrown this error but this got fixed with beta.48.
The personal sign JSON-RPC documentation defines a third parameter password. The third parameter was never optional as you can see in the documentation of web3. |
Seems like the documentation is out of line with real world usage and the behavior that web3js previously supported. |
the crux of MetaMask/metamask-extension#6080 is that web3js is not validating its params to be JSON serializeable. it just happens to explode in a non-obvious and metamask specific way after breaking changes in web3js. |
also - this is in no way a "support" issue. Either close as "wont fix" or consider reversing the breaking change and fixing the non-matching documentation. |
It was a bug and not a feature. The documentation was added two years ago and it was not thought to be optional. It's also not documented as optional in the geth and parity documentation.
It is a support issue because the documentation was always correct. |
web3.personal.sign
puts callback in json rpc params, which is invalid jsonbug reproduction steps are here
https://github.com/kumavis/web3-beta48-bug
requires web3 browser like metamask or similar
includes a hosted demo so you dont need to build anything
The text was updated successfully, but these errors were encountered: