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

Update eip-1559-gas-price-provider.ts #7

Merged
merged 1 commit into from
Sep 27, 2021
Merged

Conversation

timnugent
Copy link
Contributor

this.blocksToConsider needs to be an int, not quoted string in the eth_feeHistory RPC call - I get a {"code": -32602, "message": "Invalid method parameter(s)."} without this

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    Bug fix

  • What is the current behavior? (You can also link to an open issue here)
    32602 - Invalid method parameter(s)

  • What is the new behavior (if this is a feature change)?
    Works as expected

  • Other information:
    JSON_RPC_PROVIDER is Alchemy, Node.js v16.9.1

this.blocksToConsider needs to be an int, not quoted string in the eth_feeHistory RPC call - I get a {"code": -32602, "message": "Invalid method parameter(s)."} without this
@willpote
Copy link
Contributor

Thanks. I confirmed this works on Infura too.

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.

3 participants