Skip to content

Commit

Permalink
fix: sha3 opcode was renamed to keccak256
Browse files Browse the repository at this point in the history
  • Loading branch information
banteg committed Aug 4, 2023
1 parent 6e898d6 commit 13d12c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def find_preimages(txhash: str):
preimages = {}

for frame in vmtrace.to_trace_frames(trace):
if frame.op == "SHA3":
if frame.op in ["SHA3", "KECCAK256"]:
size, offset = [to_int(x) for x in frame.stack[-2:]]
if size != 64:
continue
Expand Down

0 comments on commit 13d12c0

Please sign in to comment.