Skip to content
Merged
Changes from 1 commit
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
4 changes: 3 additions & 1 deletion tests/benchmark/compute/instruction/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,9 @@ def test_storage_access_warm_benchmark(
"""
match storage_action:
case StorageAction.WRITE_SAME_VALUE:
attack_block = Op.SSTORE(Op.PUSH0, Op.PUSH0)
# Timestamp is nonzero (no txs run in Genesis block), so this always writes
# to the zero key a nonzero, constant value
attack_block = Op.SSTORE(Op.PUSH0, Op.TIMESTAMP)
Comment thread
LouisTsai-Csie marked this conversation as resolved.
case StorageAction.WRITE_NEW_VALUE:
attack_block = Op.SSTORE(Op.PUSH0, Op.GAS)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think this one was fine, no? It was writing a different value (Op.GAS) to the same slot (slot 0)

case StorageAction.READ:
Expand Down
Loading