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
--from-block is an optional parameter that defaults to latest. This means that the user who forgets to set it to a different value usually gets no error and no output, and doesn't understand why. The default isn't mentioned in the --help, and the user needs to read the JSON RPC documentation to figure out the default.
At the very least the --help should list all the defaults coming from the JSON RPC specification. Ideally the user should be presented with the information about the range of the blocks that are queried. Alternatively the default could be set to earliest, because latest is very rarely what the user needs.
The text was updated successfully, but these errors were encountered:
Component
Cast
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (c5fd67b 2024-01-15T00:23:11.184513736Z)
What command(s) is the bug in?
cast logs
Operating System
Linux
Describe the bug
--from-block
is an optional parameter that defaults tolatest
. This means that the user who forgets to set it to a different value usually gets no error and no output, and doesn't understand why. The default isn't mentioned in the--help
, and the user needs to read the JSON RPC documentation to figure out the default.At the very least the
--help
should list all the defaults coming from the JSON RPC specification. Ideally the user should be presented with the information about the range of the blocks that are queried. Alternatively the default could be set toearliest
, becauselatest
is very rarely what the user needs.The text was updated successfully, but these errors were encountered: