-
Notifications
You must be signed in to change notification settings - Fork 83
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
fix(eip1559): use hex number for eth_feehistory 'blockcount' parameter #765
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
requested review from
benjlevesque,
bertux,
KolevDarko and
leoslr
February 8, 2022 13:44
KolevDarko
approved these changes
Feb 8, 2022
benjlevesque
approved these changes
Feb 9, 2022
bertux
changed the title
fix(request-node): hexidecimal number for eth_feehistory blockcount
fix(request-node): hexadecimal number for eth_feehistory blockcount
Feb 15, 2022
So why not switch first to Alchemy RPC ? |
bertux
approved these changes
Feb 15, 2022
Marking this as Draft, PR is stale |
Closed
alexandre-abrioux
force-pushed
the
fee-history-hex
branch
from
October 7, 2022 09:09
bffa734
to
7a12685
Compare
alexandre-abrioux
changed the title
fix(request-node): hexadecimal number for eth_feehistory blockcount
fix(eip1559): use hex number for eth_feehistory 'blockcount' parameter
Oct 7, 2022
rebased to fix conflicts following refactor in #931 |
Merged
github-actions
bot
requested review from
benjlevesque,
kevindavee and
MantisClone
March 8, 2023 14:48
benjlevesque
approved these changes
Mar 8, 2023
rainbow-me/fee-suggestions#25 has been merged, and the lib has been updated by @leoslr in #1072, merging this now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🚨 rainbow-me/fee-suggestions#25 is needed before merging this PR.
Description of the changes
Quicknode's RPC servers do not allow the use of an integer for the
blockCount
argument ofeth_feeHistory
.Indeed, the doc specifies that it should be an hexadecimal number:
https://infura.io/docs/ethereum#operation/eth_feeHistory
Infura and Alchemy are more permissive in this regard.
This change will use the
hex
string instead of an integer to check ifeth_feeHistory
is supported on the RPC backend.We need to wait for an update of the
rainbow-me/fee-suggestions
library before merging this because this library is using an integer and not ahex
string in its RPC calls. If we merged this PR right away we would generate errors when running the request-node against Quicknode's backend.