Merge pull request #12045 from ethereum/arrayTestsForUDFT

Fix array copying check.
This commit is contained in:
chriseth
2021-09-29 10:39:34 +02:00
committed by GitHub
3 changed files with 87 additions and 1 deletions
+1 -1
View File
@@ -2416,7 +2416,7 @@ string YulUtilFunctions::copyArrayFromStorageToMemoryFunction(ArrayType const& _
return m_functionCollector.createFunction(functionName, [&]() {
if (_from.baseType()->isValueType())
{
solAssert(_from.baseType() == _to.baseType(), "");
solAssert(*_from.baseType() == *_to.baseType(), "");
ABIFunctions abi(m_evmVersion, m_revertStrings, m_functionCollector);
return Whiskers(R"(
function <functionName>(slot) -> memPtr {