-
Notifications
You must be signed in to change notification settings - Fork 5k
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
fromBlock: 0
defaults to latest
, fromBlock: 1
works correctly in eth.getPastLogs
#1100
Comments
What happens when you pass in 0 as a string: "0". That would get around the coercion of 0, if that is what is happening. |
@varsnotwars passing in btw I'm on |
I believe I have likely tracked down at least one location that has this problem: I shall file this bug there... but figuring out the dependency tree is still a work in progress... |
I'm not an expert in ethereum javascript dependency trees but it's likely that the |
This bug through me for a loop for quite a while. Until it's fixed, we should maybe update the new web3.js 1.0 docs to warn users of this unexpected behavior. |
+1 |
This issue will be solved in the next build 💪🏻 |
I fixed this in the PR #2000. |
fromBlock: 0
defaults tolatest
,fromBlock: 1
works correctly ineth.getPastLogs
I suspect somewhere in either web3.js or ethereumjs-testrpc there's a boolean check for
fromBlock
which evaluates tofalse
iffromBlock
is set to zero...Repro:
The text was updated successfully, but these errors were encountered: