Skip to content

Commit

Permalink
add passthrough_data
Browse files Browse the repository at this point in the history
  • Loading branch information
harkal committed Mar 19, 2024
1 parent 540b71a commit 71882ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vyper/codegen/ir_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ class IRnode:
args: List["IRnode"]
value: Union[str, int]
is_self_call: bool
passthrough_metadata: dict[str, Any]
func_ir: Any
common_ir: Any

Expand All @@ -151,6 +152,7 @@ def __init__(
add_gas_estimate: int = 0,
encoding: Encoding = Encoding.VYPER,
is_self_call: bool = False,
passthrough_metadata: dict[str, Any] = None,
):
if args is None:
args = []
Expand All @@ -169,6 +171,7 @@ def __init__(
self.encoding = encoding
self.as_hex = AS_HEX_DEFAULT
self.is_self_call = is_self_call
self.passthrough_metadata = passthrough_metadata or {}
self.func_ir = None
self.common_ir = None

Expand Down Expand Up @@ -554,6 +557,7 @@ def from_list(
mutable: bool = True,
add_gas_estimate: int = 0,
is_self_call: bool = False,
passthrough_metadata: dict[str, Any] = None,
encoding: Encoding = Encoding.VYPER,
) -> "IRnode":
if isinstance(typ, str): # pragma: nocover
Expand Down Expand Up @@ -587,6 +591,7 @@ def from_list(
encoding=encoding,
error_msg=error_msg,
is_self_call=is_self_call,
passthrough_metadata=passthrough_metadata,
)
else:
return cls(
Expand All @@ -601,4 +606,5 @@ def from_list(
encoding=encoding,
error_msg=error_msg,
is_self_call=is_self_call,
passthrough_metadata=passthrough_metadata,
)

0 comments on commit 71882ed

Please sign in to comment.