diff --git a/vyper/codegen/function_definitions/common.py b/vyper/codegen/function_definitions/common.py index 92a99bc38a..1d24b6c6dd 100644 --- a/vyper/codegen/function_definitions/common.py +++ b/vyper/codegen/function_definitions/common.py @@ -75,13 +75,12 @@ class EntryPointInfo: def __post_init__(self): # ABI v2 property guaranteed by the spec. - # https://docs.soliditylang.org/en/v0.8.21/abi-spec.html#formal-specification-of-the-encoding states: + # https://docs.soliditylang.org/en/v0.8.21/abi-spec.html#formal-specification-of-the-encoding states: # noqa: E501 # > Note that for any X, len(enc(X)) is a multiple of 32. assert self.min_calldatasize >= 4 assert (self.min_calldatasize - 4) % 32 == 0 - @dataclass class ExternalFuncIR(FuncIR): entry_points: dict[str, EntryPointInfo] # map from abi sigs to entry points diff --git a/vyper/codegen/module.py b/vyper/codegen/module.py index f944626b70..bfdafa8ba9 100644 --- a/vyper/codegen/module.py +++ b/vyper/codegen/module.py @@ -93,7 +93,6 @@ def _generate_external_entry_points(external_functions, global_ctx): for code in external_functions: func_ir = generate_ir_for_function(code, global_ctx) for abi_sig, entry_point in func_ir.entry_points.items(): - method_id = method_id_int(abi_sig) assert abi_sig not in entry_points assert method_id not in sig_of