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

don't pass the block number to eth_estimateGas #6

Merged
merged 2 commits into from
Oct 9, 2018
Merged

Conversation

brunobar79
Copy link

Two different issues found:

  • Currently the blockTagIndex for eth_estimateGas 0, but that's not correct since the index 0 is the tx itself. That throws an exception here slice is not a function since it's an object (the TX)
    (Can be reproduced here

  • After fixing the index I'm sending the right data to infura but still getting an RPC response error saying too many arguments, want at most 1

Because of this, I assume we don't have to pass the block number at all to the eth_estimageGas call.

With this PR both problems are fixed

@brunobar79 brunobar79 changed the title don't pass the block to eth_estimateGas don't pass the block number to eth_estimateGas Oct 9, 2018
Copy link
Contributor

@danfinlay danfinlay left a comment

Choose a reason for hiding this comment

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

!!!

@danfinlay danfinlay merged commit f788656 into master Oct 9, 2018
@danfinlay danfinlay deleted the fix-estimateGas branch October 9, 2018 21:52
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