Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 28d52a9

Browse files
authored
documentation improvement back-ported from 2.x (#3111)
1 parent a423681 commit 28d52a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/web3-eth-contract.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ Parameters
790790

791791
1. ``options`` - ``Object`` (optional): The options used for deployment.
792792
* ``filter`` - ``Object`` (optional): Let you filter events by indexed parameters, e.g. ``{filter: {myNumber: [12,13]}}`` means all events where "myNumber" is 12 or 13.
793-
* ``fromBlock`` - ``Number`` (optional): The block number from which to get events on.
793+
* ``fromBlock`` - ``Number`` (optional): The block number (greater than or equal to) from which to get events on.
794794
* ``topics`` - ``Array`` (optional): This allows to manually set the topics for the event filter. If given the filter property and event signature, (topic[0]) will not be set automatically.
795795
2. ``callback`` - ``Function`` (optional): This callback will be fired for each *event* as the second argument, or an error as the first argument.
796796

@@ -893,8 +893,8 @@ Parameters
893893
1. ``event`` - ``String``: The name of the event in the contract, or ``"allEvents"`` to get all events.
894894
2. ``options`` - ``Object`` (optional): The options used for deployment.
895895
* ``filter`` - ``Object`` (optional): Lets you filter events by indexed parameters, e.g. ``{filter: {myNumber: [12,13]}}`` means all events where "myNumber" is 12 or 13.
896-
* ``fromBlock`` - ``Number`` (optional): The block number from which to get events on.
897-
* ``toBlock`` - ``Number`` (optional): The block number to get events up to (Defaults to ``"latest"``).
896+
* ``fromBlock`` - ``Number`` (optional): The block number (greater than or equal to) from which to get events on.
897+
* ``toBlock`` - ``Number`` (optional): The block number (less than or equal to) to get events up to (Defaults to ``"latest"``).
898898
* ``topics`` - ``Array`` (optional): This allows manually setting the topics for the event filter. If given the filter property and event signature, (topic[0]) will not be set automatically.
899899
3. ``callback`` - ``Function`` (optional): This callback will be fired with an array of event logs as the second argument, or an error as the first argument.
900900

0 commit comments

Comments
 (0)