Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Sep 25, 2023
1 parent 8491f51 commit 959e851
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions vyper/codegen/function_definitions/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion vyper/codegen/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 959e851

Please sign in to comment.