-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Refactor remaining web3-provider-engine
methods
#5627
Conversation
f3f8850
to
e469a70
Compare
e469a70
to
d9b319b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch!
d9b319b
to
75510d1
Compare
This comment was marked as resolved.
This comment was marked as resolved.
The remaining non-static methods from `web3-provider-engine` have been migrated to `RPCMethodMiddleware.ts` with the rest of the method handlers. The two methods left were `personal_ecRecover` and `parity_checkRequest`. `personal_ecRecover` will recover the signing account from a signature. This operation requires no private keys. Commonly dapps will do this themselves. Persumably it was added to the dapp API at some point for convenience. It has been preserved just to avoid making breaking changes to the dapp API. `parity_checkRequest` would return the result of a parity signature or transaction. It returned `null` if none were found. The parity signature and request methods have been throwing an error for some time now, so there is never any result to check. As a result, this method has been returning `null` for all requests in practice. It has been preserved just to avoid making breaking changes to the dapp API. This relates to #5513
75510d1
to
47672a2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently discussing next steps on removing parity rpc methods. https://consensys.slack.com/archives/CBW7S9FSN/p1680805775457939
Since there is no change in functionality here, LGTM
Development & PR Process
release-xx
label to identify the PR slated for a upcoming release (will be used in release discussion)needs-dev-review
label when work is completedneeds-qa
label when dev review is completedQA Passed
label when QA has signed offDescription
The remaining non-static methods from
web3-provider-engine
have been migrated toRPCMethodMiddleware.ts
with the rest of the method handlers. The two methods left werepersonal_ecRecover
andparity_checkRequest
.personal_ecRecover
will recover the signing account from a signature. This operation requires no private keys. Commonly dapps will do this themselves. Persumably it was added to the dapp API at some point for convenience. It has been preserved just to avoid making breaking changes to the dapp API.parity_checkRequest
would return the result of a parity signature or transaction. It returnednull
if none were found. The parity signature and request methods have been throwing an error for some time now, so there is never any result to check. As a result, this method has been returningnull
for all requests in practice. It has been preserved just to avoid making breaking changes to the dapp API.Issue
This relates to #5513
Checklist