Fix abi encode with signature shortcut.

This commit is contained in:
chriseth
2021-01-18 13:44:52 +01:00
parent 6ac87a144e
commit 4f3839e4ba
2 changed files with 16 additions and 0 deletions
@@ -1121,6 +1121,7 @@ void IRGeneratorForStatements::endVisit(FunctionCall const& _functionCall)
"))\n";
IRVariable selectorVariable(m_context.newYulVariable(), *TypeProvider::fixedBytes(4));
define(selectorVariable, hashVariable);
selector = selectorVariable.name();
m_code << "mstore(" << to_string(CompilerUtils::freeMemoryPointer) << ", " << freeMemoryPre << ")\n";
}
}