Fixed string inside struct allocation bug.

This commit is contained in:
chriseth
2015-11-24 14:54:37 +01:00
parent 588e4232eb
commit 68f1da1e3a
6 changed files with 8 additions and 14 deletions
+1 -1
View File
@@ -1226,7 +1226,7 @@ void ExpressionCompiler::appendExternalFunctionCall(
else
for (auto const& retType: _functionType.returnParameterTypes())
{
solAssert(retType->calldataEncodedSize() > 0, "Unable to return dynamic type from external call.");
solAssert(!retType->isDynamicallySized(), "Unable to return dynamic type from external call.");
retSize += retType->calldataEncodedSize();
}