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

Remove providerFromEngine and providerFromMiddleware #194

Merged
merged 1 commit into from
Feb 16, 2023

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Feb 11, 2023

The two provider construction functions have been removed. These functions are instead availabile from the new package eth-json-rpc-provider.

@Gudahtt Gudahtt force-pushed the remove-provider-from-functions branch 2 times, most recently from 5fefc9f to 2729334 Compare February 11, 2023 01:24
// forward any error
if (err) {
return end(err);
// TODO: Remove this cast when next major `json-rpc-engine` release is out
// The next release changes how errors are propogated.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason, json-rpc-engine was demanding that this be Error or null. Yet it's immediately serialized, and serializeError accepts unknown.

Seems fine to cast it for now because it ought to be accepting unknown, unless I'm missing something.

I see that on the main branch of that repo, end no longer accepts an error at all, so we'll have to update how this works with the next major release anyway.

@Gudahtt Gudahtt force-pushed the remove-provider-from-functions branch 2 times, most recently from 92a0637 to eb1ba6c Compare February 11, 2023 01:30
@Gudahtt Gudahtt marked this pull request as ready for review February 11, 2023 01:31
@Gudahtt Gudahtt requested a review from a team as a code owner February 11, 2023 01:31
The two provider construction functions have been removed. These
functions are instead availabile from the new package
`eth-json-rpc-provider`.
@Gudahtt Gudahtt force-pushed the remove-provider-from-functions branch from eb1ba6c to 1032edf Compare February 14, 2023 21:18
Copy link
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me!

@Gudahtt Gudahtt merged commit 2f9d9ab into main Feb 16, 2023
@Gudahtt Gudahtt deleted the remove-provider-from-functions branch February 16, 2023 02:46
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

Successfully merging this pull request may close these issues.

2 participants