You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.
This causes stuff such as eth.getPastLogs ({fromBlock: 0, toBlock: 'latest'}) to have the unexpected behavior of only returning the latest block's filter entries. I have tried "0" and this returns nothing, the only valid fromBlock value that seems to work is 1.
I'm uncertain of the dependency tree (it's complicated) but believe this is because I'm using testrpc which uses provider-engine (I think). It doesn't look like this module is used by web3.js.
LogFilter coerces a valid block of
0
to"latest"
.This causes stuff such as eth.getPastLogs ({fromBlock: 0, toBlock: 'latest'}) to have the unexpected behavior of only returning the latest block's filter entries. I have tried
"0"
and this returns nothing, the only valid fromBlock value that seems to work is1
.I'm uncertain of the dependency tree (it's complicated) but believe this is because I'm using
testrpc
which uses provider-engine (I think). It doesn't look like this module is used byweb3.js
.code: https://github.com/MetaMask/provider-engine/blob/c878e5ac19e061dc3de7f317f5ed4090b3fbd49c/subproviders/filters.js#L332
I note that other implementations such as web3.js implement a check for
undefined
instead of a boolean check like the code above does.Related issue here: web3/web3.js#1100
The text was updated successfully, but these errors were encountered: