Skip to content
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
2 changes: 1 addition & 1 deletion repo_subpaths_for_grammar_check.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Status legend: `[ ]` pending, `[~]` in progress, `[x]` complete

## src/ethereum/forks - VM Instructions

- [ ] `src/ethereum/forks/*/vm/instructions/arithmetic.py`, `comparison.py`, `bitwise.py` (~72 files)
- [x] `src/ethereum/forks/*/vm/instructions/arithmetic.py`, `comparison.py`, `bitwise.py` (~72 files)
- [ ] `src/ethereum/forks/*/vm/instructions/block.py`, `environment.py`, `control_flow.py` (~72 files)
- [ ] `src/ethereum/forks/*/vm/instructions/keccak.py`, `log.py`, `memory.py`, `stack.py` (~96 files)
- [ ] `src/ethereum/forks/*/vm/instructions/storage.py`, `system.py`, `__init__.py` (~72 files)
Expand Down
4 changes: 2 additions & 2 deletions src/ethereum/forks/amsterdam/vm/instructions/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sub(evm: Evm) -> None:

def mul(evm: Evm) -> None:
"""
Multiply the top two elements of the stack, and pushes the result back
Multiplies the top two elements of the stack, and pushes the result back
on the stack.

Parameters
Expand Down Expand Up @@ -353,7 +353,7 @@ def signextend(evm: Evm) -> None:
# Can't extend any further
result = value
else:
# U256(0).to_be_bytes() gives b'' instead b'\x00'.
# U256(0).to_be_bytes() gives b'' instead of b'\x00'.
value_bytes = Bytes(value.to_be_bytes32())
# Now among the obtained value bytes, consider only
# N `least significant bytes`, where N is `byte_num + 1`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sub(evm: Evm) -> None:

def mul(evm: Evm) -> None:
"""
Multiply the top two elements of the stack, and pushes the result back
Multiplies the top two elements of the stack, and pushes the result back
on the stack.

Parameters
Expand Down Expand Up @@ -353,7 +353,7 @@ def signextend(evm: Evm) -> None:
# Can't extend any further
result = value
else:
# U256(0).to_be_bytes() gives b'' instead b'\x00'.
# U256(0).to_be_bytes() gives b'' instead of b'\x00'.
value_bytes = Bytes(value.to_be_bytes32())
# Now among the obtained value bytes, consider only
# N `least significant bytes`, where N is `byte_num + 1`.
Expand Down
4 changes: 2 additions & 2 deletions src/ethereum/forks/berlin/vm/instructions/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sub(evm: Evm) -> None:

def mul(evm: Evm) -> None:
"""
Multiply the top two elements of the stack, and pushes the result back
Multiplies the top two elements of the stack, and pushes the result back
on the stack.

Parameters
Expand Down Expand Up @@ -353,7 +353,7 @@ def signextend(evm: Evm) -> None:
# Can't extend any further
result = value
else:
# U256(0).to_be_bytes() gives b'' instead b'\x00'.
# U256(0).to_be_bytes() gives b'' instead of b'\x00'.
value_bytes = Bytes(value.to_be_bytes32())
# Now among the obtained value bytes, consider only
# N `least significant bytes`, where N is `byte_num + 1`.
Expand Down
4 changes: 2 additions & 2 deletions src/ethereum/forks/bpo1/vm/instructions/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sub(evm: Evm) -> None:

def mul(evm: Evm) -> None:
"""
Multiply the top two elements of the stack, and pushes the result back
Multiplies the top two elements of the stack, and pushes the result back
on the stack.

Parameters
Expand Down Expand Up @@ -353,7 +353,7 @@ def signextend(evm: Evm) -> None:
# Can't extend any further
result = value
else:
# U256(0).to_be_bytes() gives b'' instead b'\x00'.
# U256(0).to_be_bytes() gives b'' instead of b'\x00'.
value_bytes = Bytes(value.to_be_bytes32())
# Now among the obtained value bytes, consider only
# N `least significant bytes`, where N is `byte_num + 1`.
Expand Down
4 changes: 2 additions & 2 deletions src/ethereum/forks/bpo2/vm/instructions/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sub(evm: Evm) -> None:

def mul(evm: Evm) -> None:
"""
Multiply the top two elements of the stack, and pushes the result back
Multiplies the top two elements of the stack, and pushes the result back
on the stack.

Parameters
Expand Down Expand Up @@ -353,7 +353,7 @@ def signextend(evm: Evm) -> None:
# Can't extend any further
result = value
else:
# U256(0).to_be_bytes() gives b'' instead b'\x00'.
# U256(0).to_be_bytes() gives b'' instead of b'\x00'.
value_bytes = Bytes(value.to_be_bytes32())
# Now among the obtained value bytes, consider only
# N `least significant bytes`, where N is `byte_num + 1`.
Expand Down
4 changes: 2 additions & 2 deletions src/ethereum/forks/bpo3/vm/instructions/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sub(evm: Evm) -> None:

def mul(evm: Evm) -> None:
"""
Multiply the top two elements of the stack, and pushes the result back
Multiplies the top two elements of the stack, and pushes the result back
on the stack.

Parameters
Expand Down Expand Up @@ -353,7 +353,7 @@ def signextend(evm: Evm) -> None:
# Can't extend any further
result = value
else:
# U256(0).to_be_bytes() gives b'' instead b'\x00'.
# U256(0).to_be_bytes() gives b'' instead of b'\x00'.
value_bytes = Bytes(value.to_be_bytes32())
# Now among the obtained value bytes, consider only
# N `least significant bytes`, where N is `byte_num + 1`.
Expand Down
4 changes: 2 additions & 2 deletions src/ethereum/forks/bpo4/vm/instructions/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sub(evm: Evm) -> None:

def mul(evm: Evm) -> None:
"""
Multiply the top two elements of the stack, and pushes the result back
Multiplies the top two elements of the stack, and pushes the result back
on the stack.

Parameters
Expand Down Expand Up @@ -353,7 +353,7 @@ def signextend(evm: Evm) -> None:
# Can't extend any further
result = value
else:
# U256(0).to_be_bytes() gives b'' instead b'\x00'.
# U256(0).to_be_bytes() gives b'' instead of b'\x00'.
value_bytes = Bytes(value.to_be_bytes32())
# Now among the obtained value bytes, consider only
# N `least significant bytes`, where N is `byte_num + 1`.
Expand Down
4 changes: 2 additions & 2 deletions src/ethereum/forks/bpo5/vm/instructions/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sub(evm: Evm) -> None:

def mul(evm: Evm) -> None:
"""
Multiply the top two elements of the stack, and pushes the result back
Multiplies the top two elements of the stack, and pushes the result back
on the stack.

Parameters
Expand Down Expand Up @@ -353,7 +353,7 @@ def signextend(evm: Evm) -> None:
# Can't extend any further
result = value
else:
# U256(0).to_be_bytes() gives b'' instead b'\x00'.
# U256(0).to_be_bytes() gives b'' instead of b'\x00'.
value_bytes = Bytes(value.to_be_bytes32())
# Now among the obtained value bytes, consider only
# N `least significant bytes`, where N is `byte_num + 1`.
Expand Down
4 changes: 2 additions & 2 deletions src/ethereum/forks/byzantium/vm/instructions/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sub(evm: Evm) -> None:

def mul(evm: Evm) -> None:
"""
Multiply the top two elements of the stack, and pushes the result back
Multiplies the top two elements of the stack, and pushes the result back
on the stack.

Parameters
Expand Down Expand Up @@ -353,7 +353,7 @@ def signextend(evm: Evm) -> None:
# Can't extend any further
result = value
else:
# U256(0).to_be_bytes() gives b'' instead b'\x00'.
# U256(0).to_be_bytes() gives b'' instead of b'\x00'.
value_bytes = Bytes(value.to_be_bytes32())
# Now among the obtained value bytes, consider only
# N `least significant bytes`, where N is `byte_num + 1`.
Expand Down
4 changes: 2 additions & 2 deletions src/ethereum/forks/cancun/vm/instructions/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sub(evm: Evm) -> None:

def mul(evm: Evm) -> None:
"""
Multiply the top two elements of the stack, and pushes the result back
Multiplies the top two elements of the stack, and pushes the result back
on the stack.

Parameters
Expand Down Expand Up @@ -353,7 +353,7 @@ def signextend(evm: Evm) -> None:
# Can't extend any further
result = value
else:
# U256(0).to_be_bytes() gives b'' instead b'\x00'.
# U256(0).to_be_bytes() gives b'' instead of b'\x00'.
value_bytes = Bytes(value.to_be_bytes32())
# Now among the obtained value bytes, consider only
# N `least significant bytes`, where N is `byte_num + 1`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sub(evm: Evm) -> None:

def mul(evm: Evm) -> None:
"""
Multiply the top two elements of the stack, and pushes the result back
Multiplies the top two elements of the stack, and pushes the result back
on the stack.

Parameters
Expand Down Expand Up @@ -353,7 +353,7 @@ def signextend(evm: Evm) -> None:
# Can't extend any further
result = value
else:
# U256(0).to_be_bytes() gives b'' instead b'\x00'.
# U256(0).to_be_bytes() gives b'' instead of b'\x00'.
value_bytes = Bytes(value.to_be_bytes32())
# Now among the obtained value bytes, consider only
# N `least significant bytes`, where N is `byte_num + 1`.
Expand Down
4 changes: 2 additions & 2 deletions src/ethereum/forks/dao_fork/vm/instructions/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sub(evm: Evm) -> None:

def mul(evm: Evm) -> None:
"""
Multiply the top two elements of the stack, and pushes the result back
Multiplies the top two elements of the stack, and pushes the result back
on the stack.

Parameters
Expand Down Expand Up @@ -353,7 +353,7 @@ def signextend(evm: Evm) -> None:
# Can't extend any further
result = value
else:
# U256(0).to_be_bytes() gives b'' instead b'\x00'.
# U256(0).to_be_bytes() gives b'' instead of b'\x00'.
value_bytes = Bytes(value.to_be_bytes32())
# Now among the obtained value bytes, consider only
# N `least significant bytes`, where N is `byte_num + 1`.
Expand Down
4 changes: 2 additions & 2 deletions src/ethereum/forks/frontier/vm/instructions/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sub(evm: Evm) -> None:

def mul(evm: Evm) -> None:
"""
Multiply the top two elements of the stack, and pushes the result back
Multiplies the top two elements of the stack, and pushes the result back
on the stack.

Parameters
Expand Down Expand Up @@ -353,7 +353,7 @@ def signextend(evm: Evm) -> None:
# Can't extend any further
result = value
else:
# U256(0).to_be_bytes() gives b'' instead b'\x00'.
# U256(0).to_be_bytes() gives b'' instead of b'\x00'.
value_bytes = Bytes(value.to_be_bytes32())
# Now among the obtained value bytes, consider only
# N `least significant bytes`, where N is `byte_num + 1`.
Expand Down
4 changes: 2 additions & 2 deletions src/ethereum/forks/gray_glacier/vm/instructions/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sub(evm: Evm) -> None:

def mul(evm: Evm) -> None:
"""
Multiply the top two elements of the stack, and pushes the result back
Multiplies the top two elements of the stack, and pushes the result back
on the stack.

Parameters
Expand Down Expand Up @@ -353,7 +353,7 @@ def signextend(evm: Evm) -> None:
# Can't extend any further
result = value
else:
# U256(0).to_be_bytes() gives b'' instead b'\x00'.
# U256(0).to_be_bytes() gives b'' instead of b'\x00'.
value_bytes = Bytes(value.to_be_bytes32())
# Now among the obtained value bytes, consider only
# N `least significant bytes`, where N is `byte_num + 1`.
Expand Down
4 changes: 2 additions & 2 deletions src/ethereum/forks/homestead/vm/instructions/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sub(evm: Evm) -> None:

def mul(evm: Evm) -> None:
"""
Multiply the top two elements of the stack, and pushes the result back
Multiplies the top two elements of the stack, and pushes the result back
on the stack.

Parameters
Expand Down Expand Up @@ -353,7 +353,7 @@ def signextend(evm: Evm) -> None:
# Can't extend any further
result = value
else:
# U256(0).to_be_bytes() gives b'' instead b'\x00'.
# U256(0).to_be_bytes() gives b'' instead of b'\x00'.
value_bytes = Bytes(value.to_be_bytes32())
# Now among the obtained value bytes, consider only
# N `least significant bytes`, where N is `byte_num + 1`.
Expand Down
4 changes: 2 additions & 2 deletions src/ethereum/forks/istanbul/vm/instructions/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sub(evm: Evm) -> None:

def mul(evm: Evm) -> None:
"""
Multiply the top two elements of the stack, and pushes the result back
Multiplies the top two elements of the stack, and pushes the result back
on the stack.

Parameters
Expand Down Expand Up @@ -353,7 +353,7 @@ def signextend(evm: Evm) -> None:
# Can't extend any further
result = value
else:
# U256(0).to_be_bytes() gives b'' instead b'\x00'.
# U256(0).to_be_bytes() gives b'' instead of b'\x00'.
value_bytes = Bytes(value.to_be_bytes32())
# Now among the obtained value bytes, consider only
# N `least significant bytes`, where N is `byte_num + 1`.
Expand Down
4 changes: 2 additions & 2 deletions src/ethereum/forks/london/vm/instructions/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sub(evm: Evm) -> None:

def mul(evm: Evm) -> None:
"""
Multiply the top two elements of the stack, and pushes the result back
Multiplies the top two elements of the stack, and pushes the result back
on the stack.

Parameters
Expand Down Expand Up @@ -353,7 +353,7 @@ def signextend(evm: Evm) -> None:
# Can't extend any further
result = value
else:
# U256(0).to_be_bytes() gives b'' instead b'\x00'.
# U256(0).to_be_bytes() gives b'' instead of b'\x00'.
value_bytes = Bytes(value.to_be_bytes32())
# Now among the obtained value bytes, consider only
# N `least significant bytes`, where N is `byte_num + 1`.
Expand Down
4 changes: 2 additions & 2 deletions src/ethereum/forks/muir_glacier/vm/instructions/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sub(evm: Evm) -> None:

def mul(evm: Evm) -> None:
"""
Multiply the top two elements of the stack, and pushes the result back
Multiplies the top two elements of the stack, and pushes the result back
on the stack.

Parameters
Expand Down Expand Up @@ -353,7 +353,7 @@ def signextend(evm: Evm) -> None:
# Can't extend any further
result = value
else:
# U256(0).to_be_bytes() gives b'' instead b'\x00'.
# U256(0).to_be_bytes() gives b'' instead of b'\x00'.
value_bytes = Bytes(value.to_be_bytes32())
# Now among the obtained value bytes, consider only
# N `least significant bytes`, where N is `byte_num + 1`.
Expand Down
4 changes: 2 additions & 2 deletions src/ethereum/forks/osaka/vm/instructions/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sub(evm: Evm) -> None:

def mul(evm: Evm) -> None:
"""
Multiply the top two elements of the stack, and pushes the result back
Multiplies the top two elements of the stack, and pushes the result back
on the stack.

Parameters
Expand Down Expand Up @@ -353,7 +353,7 @@ def signextend(evm: Evm) -> None:
# Can't extend any further
result = value
else:
# U256(0).to_be_bytes() gives b'' instead b'\x00'.
# U256(0).to_be_bytes() gives b'' instead of b'\x00'.
value_bytes = Bytes(value.to_be_bytes32())
# Now among the obtained value bytes, consider only
# N `least significant bytes`, where N is `byte_num + 1`.
Expand Down
4 changes: 2 additions & 2 deletions src/ethereum/forks/paris/vm/instructions/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sub(evm: Evm) -> None:

def mul(evm: Evm) -> None:
"""
Multiply the top two elements of the stack, and pushes the result back
Multiplies the top two elements of the stack, and pushes the result back
on the stack.

Parameters
Expand Down Expand Up @@ -353,7 +353,7 @@ def signextend(evm: Evm) -> None:
# Can't extend any further
result = value
else:
# U256(0).to_be_bytes() gives b'' instead b'\x00'.
# U256(0).to_be_bytes() gives b'' instead of b'\x00'.
value_bytes = Bytes(value.to_be_bytes32())
# Now among the obtained value bytes, consider only
# N `least significant bytes`, where N is `byte_num + 1`.
Expand Down
4 changes: 2 additions & 2 deletions src/ethereum/forks/prague/vm/instructions/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def sub(evm: Evm) -> None:

def mul(evm: Evm) -> None:
"""
Multiply the top two elements of the stack, and pushes the result back
Multiplies the top two elements of the stack, and pushes the result back
on the stack.

Parameters
Expand Down Expand Up @@ -353,7 +353,7 @@ def signextend(evm: Evm) -> None:
# Can't extend any further
result = value
else:
# U256(0).to_be_bytes() gives b'' instead b'\x00'.
# U256(0).to_be_bytes() gives b'' instead of b'\x00'.
value_bytes = Bytes(value.to_be_bytes32())
# Now among the obtained value bytes, consider only
# N `least significant bytes`, where N is `byte_num + 1`.
Expand Down
Loading
Loading