Merge pull request #10126 from ethereum/fixIceStructCalldataToStorageSol2Yul

[Sol->Yul] Fixing ice when copying struct that contains nested array to storage
This commit is contained in:
chriseth
2020-10-28 11:46:22 +01:00
committed by GitHub
3 changed files with 55 additions and 8 deletions
+1 -1
View File
@@ -2220,7 +2220,7 @@ string YulUtilFunctions::updateStorageValueFunction(
structMembers[i].type->stackItems().size()
));
t("dynamicallyEncodedMember", structMembers[i].type->isDynamicallyEncoded());
if (structMembers[i].type->isDynamicallySized())
if (structMembers[i].type->isDynamicallyEncoded())
t("accessCalldataTail", accessCalldataTailFunction(*structMembers[i].type));
}
t("isValueType", structMembers[i].type->isValueType());