vyperlang / vyper

Pythonic Smart Contract Language for the EVM
https://vyperlang.org
Other
4.84k stars 788 forks source link

Duplicated Code #4102

Open ritzdorf opened 4 months ago

ritzdorf commented 4 months ago

Version Information

The following is performed in ir_for_self_call():

goto_op = ["goto", func_t._ir_info.internal_function_label(context.is_ctor_context)]

However, _label is set to func_t._ir_info.internal_function_label(context.is_ctor_context) earlier in the function and could be used to avoid duplicated code.