Skip to content

Commit 9182414

Browse files
EperezOkSamWilsn
authored andcommitted
fix: documentation clarity
1 parent 67bc568 commit 9182414

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+86
-86
lines changed

src/ethereum/arrow_glacier/fork.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -705,8 +705,8 @@ def process_transaction(
705705
Execute a transaction against the provided environment.
706706
707707
This function processes the actions needed to execute a transaction.
708-
It decrements the sender's account after calculating the gas fee and
709-
refunds them the proper amount after execution. Calling contracts,
708+
It decrements the sender's account balance after calculating the gas fee
709+
and refunds them the proper amount after execution. Calling contracts,
710710
deploying code, and incrementing nonces are all examples of actions that
711711
happen within this function or from a call made within this function.
712712

src/ethereum/arrow_glacier/state.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def commit_transaction(state: State) -> None:
9696
def rollback_transaction(state: State) -> None:
9797
"""
9898
Rollback a state transaction, resetting the state to the point when the
99-
corresponding `start_transaction()` call was made.
99+
corresponding `begin_transaction()` call was made.
100100
101101
Parameters
102102
----------
@@ -420,7 +420,7 @@ def account_exists_and_is_empty(state: State, address: Address) -> bool:
420420

421421
def is_account_alive(state: State, address: Address) -> bool:
422422
"""
423-
Check whether is an account is both in the state and non empty.
423+
Check whether an account is both in the state and non-empty.
424424
425425
Parameters
426426
----------

src/ethereum/arrow_glacier/vm/interpreter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class MessageCallOutput:
9191

9292
def process_message_call(message: Message) -> MessageCallOutput:
9393
"""
94-
If `message.current` is empty then it creates a smart contract
94+
If `message.target` is empty then it creates a smart contract
9595
else it executes a call from the `message.caller` to the `message.target`.
9696
9797
Parameters

src/ethereum/berlin/fork.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,8 @@ def process_transaction(
598598
Execute a transaction against the provided environment.
599599
600600
This function processes the actions needed to execute a transaction.
601-
It decrements the sender's account after calculating the gas fee and
602-
refunds them the proper amount after execution. Calling contracts,
601+
It decrements the sender's account balance after calculating the gas fee
602+
and refunds them the proper amount after execution. Calling contracts,
603603
deploying code, and incrementing nonces are all examples of actions that
604604
happen within this function or from a call made within this function.
605605

src/ethereum/berlin/state.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def commit_transaction(state: State) -> None:
9696
def rollback_transaction(state: State) -> None:
9797
"""
9898
Rollback a state transaction, resetting the state to the point when the
99-
corresponding `start_transaction()` call was made.
99+
corresponding `begin_transaction()` call was made.
100100
101101
Parameters
102102
----------
@@ -420,7 +420,7 @@ def account_exists_and_is_empty(state: State, address: Address) -> bool:
420420

421421
def is_account_alive(state: State, address: Address) -> bool:
422422
"""
423-
Check whether is an account is both in the state and non empty.
423+
Check whether an account is both in the state and non-empty.
424424
425425
Parameters
426426
----------

src/ethereum/berlin/vm/interpreter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class MessageCallOutput:
9090

9191
def process_message_call(message: Message) -> MessageCallOutput:
9292
"""
93-
If `message.current` is empty then it creates a smart contract
93+
If `message.target` is empty then it creates a smart contract
9494
else it executes a call from the `message.caller` to the `message.target`.
9595
9696
Parameters

src/ethereum/byzantium/fork.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,8 +590,8 @@ def process_transaction(
590590
Execute a transaction against the provided environment.
591591
592592
This function processes the actions needed to execute a transaction.
593-
It decrements the sender's account after calculating the gas fee and
594-
refunds them the proper amount after execution. Calling contracts,
593+
It decrements the sender's account balance after calculating the gas fee
594+
and refunds them the proper amount after execution. Calling contracts,
595595
deploying code, and incrementing nonces are all examples of actions that
596596
happen within this function or from a call made within this function.
597597

src/ethereum/byzantium/state.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def commit_transaction(state: State) -> None:
9292
def rollback_transaction(state: State) -> None:
9393
"""
9494
Rollback a state transaction, resetting the state to the point when the
95-
corresponding `start_transaction()` call was made.
95+
corresponding `begin_transaction()` call was made.
9696
9797
Parameters
9898
----------
@@ -394,7 +394,7 @@ def account_exists_and_is_empty(state: State, address: Address) -> bool:
394394

395395
def is_account_alive(state: State, address: Address) -> bool:
396396
"""
397-
Check whether is an account is both in the state and non empty.
397+
Check whether an account is both in the state and non-empty.
398398
399399
Parameters
400400
----------

src/ethereum/byzantium/vm/interpreter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class MessageCallOutput:
8989

9090
def process_message_call(message: Message) -> MessageCallOutput:
9191
"""
92-
If `message.current` is empty then it creates a smart contract
92+
If `message.target` is empty then it creates a smart contract
9393
else it executes a call from the `message.caller` to the `message.target`.
9494
9595
Parameters

src/ethereum/cancun/fork.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,8 +675,8 @@ def process_transaction(
675675
Execute a transaction against the provided environment.
676676
677677
This function processes the actions needed to execute a transaction.
678-
It decrements the sender's account after calculating the gas fee and
679-
refunds them the proper amount after execution. Calling contracts,
678+
It decrements the sender's account balance after calculating the gas fee
679+
and refunds them the proper amount after execution. Calling contracts,
680680
deploying code, and incrementing nonces are all examples of actions that
681681
happen within this function or from a call made within this function.
682682

0 commit comments

Comments
 (0)