Skip to content

Commit

Permalink
Clean up conditionals in vm/instructions/log.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SamWilsn committed Apr 27, 2024
1 parent 7d32ef9 commit 9f20c80
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/ethereum/arrow_glacier/vm/instructions/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def log_n(evm: Evm, num_topics: U256) -> None:

# OPERATION
evm.memory += b"\x00" * extend_memory.expand_by
if not (not evm.message.is_static):
if evm.message.is_static:
raise WriteInStaticContext
log_entry = Log(
address=evm.message.current_target,
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/berlin/vm/instructions/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def log_n(evm: Evm, num_topics: U256) -> None:

# OPERATION
evm.memory += b"\x00" * extend_memory.expand_by
if not (not evm.message.is_static):
if evm.message.is_static:
raise WriteInStaticContext
log_entry = Log(
address=evm.message.current_target,
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/byzantium/vm/instructions/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def log_n(evm: Evm, num_topics: U256) -> None:

# OPERATION
evm.memory += b"\x00" * extend_memory.expand_by
if not (not evm.message.is_static):
if evm.message.is_static:
raise WriteInStaticContext
log_entry = Log(
address=evm.message.current_target,
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/cancun/vm/instructions/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def log_n(evm: Evm, num_topics: U256) -> None:

# OPERATION
evm.memory += b"\x00" * extend_memory.expand_by
if not (not evm.message.is_static):
if evm.message.is_static:
raise WriteInStaticContext
log_entry = Log(
address=evm.message.current_target,
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/constantinople/vm/instructions/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def log_n(evm: Evm, num_topics: U256) -> None:

# OPERATION
evm.memory += b"\x00" * extend_memory.expand_by
if not (not evm.message.is_static):
if evm.message.is_static:
raise WriteInStaticContext
log_entry = Log(
address=evm.message.current_target,
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/gray_glacier/vm/instructions/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def log_n(evm: Evm, num_topics: U256) -> None:

# OPERATION
evm.memory += b"\x00" * extend_memory.expand_by
if not (not evm.message.is_static):
if evm.message.is_static:
raise WriteInStaticContext
log_entry = Log(
address=evm.message.current_target,
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/istanbul/vm/instructions/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def log_n(evm: Evm, num_topics: U256) -> None:

# OPERATION
evm.memory += b"\x00" * extend_memory.expand_by
if not (not evm.message.is_static):
if evm.message.is_static:
raise WriteInStaticContext
log_entry = Log(
address=evm.message.current_target,
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/london/vm/instructions/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def log_n(evm: Evm, num_topics: U256) -> None:

# OPERATION
evm.memory += b"\x00" * extend_memory.expand_by
if not (not evm.message.is_static):
if evm.message.is_static:
raise WriteInStaticContext
log_entry = Log(
address=evm.message.current_target,
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/muir_glacier/vm/instructions/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def log_n(evm: Evm, num_topics: U256) -> None:

# OPERATION
evm.memory += b"\x00" * extend_memory.expand_by
if not (not evm.message.is_static):
if evm.message.is_static:
raise WriteInStaticContext
log_entry = Log(
address=evm.message.current_target,
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/paris/vm/instructions/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def log_n(evm: Evm, num_topics: U256) -> None:

# OPERATION
evm.memory += b"\x00" * extend_memory.expand_by
if not (not evm.message.is_static):
if evm.message.is_static:
raise WriteInStaticContext
log_entry = Log(
address=evm.message.current_target,
Expand Down
2 changes: 1 addition & 1 deletion src/ethereum/shanghai/vm/instructions/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def log_n(evm: Evm, num_topics: U256) -> None:

# OPERATION
evm.memory += b"\x00" * extend_memory.expand_by
if not (not evm.message.is_static):
if evm.message.is_static:
raise WriteInStaticContext
log_entry = Log(
address=evm.message.current_target,
Expand Down

0 comments on commit 9f20c80

Please sign in to comment.