Merge pull request #10776 from ethereum/fixABIEncoderWithSignature

Fix abi encode with signature shortcut.
This commit is contained in:
chriseth
2021-01-18 19:07:56 +01:00
committed by GitHub
7 changed files with 152 additions and 180 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";
}
}