Skip to content

Commit

Permalink
fix: enumsafety
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jun 10, 2024
1 parent de5fad0 commit 92ffef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ape_vyper/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1334,12 +1334,12 @@ def _get_traceback(
pcmap = PCMap.model_validate({})

for frame in frames:
if frame["op"] in CALL_OPCODES:
if frame["op"] in [c.value for c in CALL_OPCODES]:
start_depth = frame["depth"]
called_contract, sub_calldata = self._create_contract_from_call(frame)
if called_contract:
ext = get_full_extension(Path(called_contract.source_id))
if ext in FileType:
if ext in [x for x in FileType]:
# Called another Vyper contract.
sub_trace = self._get_traceback(
called_contract, frames, sub_calldata, previous_depth=frame["depth"]
Expand Down

0 comments on commit 92ffef3

Please sign in to comment.