Skip to content
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

chore: fix typos #1779

Merged
merged 1 commit into from
Jun 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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