Skip to content
Open
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
2 changes: 2 additions & 0 deletions vyper/codegen_venom/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1793,6 +1793,8 @@ def _lower_external_call(self) -> VyperValue:

# === Dispatch CALL or STATICCALL ===
use_staticcall = fn_type.mutability in (StateMutability.VIEW, StateMutability.PURE)
if self.ctx.is_constant():
assert use_staticcall, "typechecker missed this"
Comment thread
Sporarum marked this conversation as resolved.
Outdated

# Return buffer location and size
ret_ofst = buf._ptr
Expand Down
Loading