-
Notifications
You must be signed in to change notification settings - Fork 8
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: hexidecimal number for eth_feehistory blockcount #25
Conversation
PS: Here is the link of the official spec, described in the ethereum/execution-apis repository. You will find that |
Hi @estebanmino! Any change of this being merged? It would be greatly appreciated! Thanks 🙂 |
Updates 1/ I released a branch in my fork that contains the (fixed) compiled JS files and that you can directly use in your "eip1559-fee-suggestions-ethers": "git+https://github.com/alexandre-abrioux/fee-suggestions#hex-feehistory-dist" 2/ Quicknode now supports integers for the |
Thank you very much @welps for the review and the merge! Do you think it could be released as a minor version for the npm package? |
@alexandre-abrioux Yes, I don't have access to do this so I'm gonna be looking to get someone to do it this week |
Thank you @welps 🙂 |
@alexandre-abrioux Likely will release next week, I understand why #23 is happening and am trying to figure out a good solution so I can fit in a fix. |
Great! Thanks again |
@alexandre-abrioux This has been released under 2.1.0 on npm In regard to #23, see #23 (comment) |
Hi!
First of all, thank you for creating this tool!
Its really great and has been working like a charm in projects that I've included it in.
However I had an issue running it against Quicknode's RPC servers.
You can test it with this simple
demo.ts
:You will get this server error:
It looks like Infura and Alchemy both allow the use of an integer for the
blockCount
argument ofeth_feeHistory
.But the doc actually specifies that it should be an hexadecimal number:
https://infura.io/docs/ethereum#operation/eth_feeHistory
This change fixes it by using ethers' hexadecimal
utils
.