Fix IR bug about calling the wrong modifier during construction

This commit is contained in:
hrkrshnn
2021-02-10 20:53:11 +01:00
parent 43319574e7
commit 2f30fdaa21
3 changed files with 21 additions and 1 deletions
+1 -1
View File
@@ -727,7 +727,7 @@ void IRGenerator::generateImplicitConstructors(ContractDefinition const& _contra
generateModifier(modifier, *constructor, next);
}
body =
IRNames::modifierInvocation(*constructor->modifiers().at(0)) +
IRNames::modifierInvocation(*realModifiers.at(0)) +
"(" +
joinHumanReadable(params) +
")";