Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion src/ethereum/prague/fork.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ def process_transaction(
Execute a transaction against the provided environment.

This function processes the actions needed to execute a transaction.
It decrements the sender's account after calculating the gas fee and
It decrements the sender's account balance after calculating the gas fee and
refunds them the proper amount after execution. Calling contracts,
deploying code, and incrementing nonces are all examples of actions that
happen within this function or from a call made within this function.
Expand Down
4 changes: 2 additions & 2 deletions src/ethereum/prague/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def rollback_transaction(
) -> None:
"""
Rollback a state transaction, resetting the state to the point when the
corresponding `start_transaction()` call was made.
corresponding `begin_transaction()` call was made.
Parameters
----------
Expand Down Expand Up @@ -478,7 +478,7 @@ def account_exists_and_is_empty(state: State, address: Address) -> bool:

def is_account_alive(state: State, address: Address) -> bool:
"""
Check whether is an account is both in the state and non empty.
Check whether an account is both in the state and non-empty.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put back the "both" here. I think it's good to emphasize that both conditions must be true.

Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/prague/vm/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class MessageCallOutput:

def process_message_call(message: Message) -> MessageCallOutput:
"""
If `message.current` is empty then it creates a smart contract
If `message.target` is empty then it creates a smart contract
else it executes a call from the `message.caller` to the `message.target`.
Parameters
Expand Down