Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Aug 27, 2021
1 parent b3c8c27 commit 99a8961
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vyper/builtin_functions/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def build_LLL(self, expr, args, kwargs, context):
# if we are slicing msg.data, the length should
# be a constant, since msg.data can be of dynamic length
# we can't use it's length as the maxlen
assert isinstance(length.value, int) # sanity check
assert isinstance(length.value, int) # sanity check
sub_typ_maxlen = length.value
else:
sub_typ_maxlen = sub.typ.maxlen
Expand Down
2 changes: 1 addition & 1 deletion vyper/evm/opcodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
"ASSERT": (None, 1, 0, 85),
"ASSERT_UNREACHABLE": (None, 1, 0, 17),
"PASS": (None, 0, 0, 0),
"DUMMY": (None, 0, 1, 0), # tell LLL that no, there really is a stack item here
"DUMMY": (None, 0, 1, 0), # tell LLL that no, there really is a stack item here
"BREAK": (None, 0, 0, 20),
"CONTINUE": (None, 0, 0, 20),
"SHA3_32": (None, 1, 1, 72),
Expand Down
4 changes: 3 additions & 1 deletion vyper/ovm/transpile_lll.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,9 @@ def generate_label(opcode):
+ [lll for lll in reversed(rewritten_args)]
+ [["goto", subroutine.subroutine_label()]]
+ [["label", label]]
+ ["dummy"] if subroutine.evm_returns else ["pass"]
+ ["dummy"]
if subroutine.evm_returns
else ["pass"]
)

lll_ret = [lll_node.value] + rewritten_args
Expand Down

0 comments on commit 99a8961

Please sign in to comment.