Skip to content

Commit

Permalink
Merge pull request #1779 from xiaoxianBoy/fix-typos
Browse files Browse the repository at this point in the history
chore: fix typos
  • Loading branch information
iamdefinitelyahuman authored Jun 8, 2024
2 parents f722038 + c76077d commit 9635c1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions brownie/network/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@ def subscribe(
) -> None:
"""
Subscribe to event with a name matching 'event_name', calling the 'callback'
function on new occurence giving as parameter the event log receipt.
function on new occurrence giving as parameter the event log receipt.
Args:
event_name (str): Name of the event to subscribe to.
Expand All @@ -1285,10 +1285,10 @@ def get_sequence(
Returns:
if 'event_type' is specified:
[list]: List of events of type 'event_type' that occured between
[list]: List of events of type 'event_type' that occurred between
'from_block' and 'to_block'.
else:
event_logbook [dict]: Dictionnary of events of the contract that occured
event_logbook [dict]: Dictionary of events of the contract that occurred
between 'from_block' and 'to_block'.
"""
if to_block is None or to_block > web3.eth.block_number:
Expand All @@ -1315,7 +1315,7 @@ def listen(self, event_name: str, timeout: float = 0) -> Coroutine:
'event_name' occurs. If timeout is superior to zero and no event matching
'event_name' has occured, the Coroutine ends when the timeout is reached.
The Coroutine return value is an AttributeDict filled with the following fileds :
The Coroutine return value is an AttributeDict filled with the following fields :
- 'event_data' (AttributeDict): The event log receipt that was caught.
- 'timed_out' (bool): False if the event did not timeout, else True
Expand Down
2 changes: 1 addition & 1 deletion brownie/project/flattener.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def flattened_source(self) -> str:
# all pragma statements, we already have the license used + know which compiler
# version is used via the build info
pragmas = set((match.strip() for src in sources for match in PRAGMA_PATTERN.findall(src)))
# now we go thorugh and remove all imports/pragmas/license stuff
# now we go through and remove all imports/pragmas/license stuff
wipe = lambda src: PRAGMA_PATTERN.sub( # noqa: E731
"", LICENSE_PATTERN.sub("", IMPORT_PATTERN.sub("", src))
)
Expand Down

0 comments on commit 9635c1e

Please sign in to comment.