mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fixed string inside struct allocation bug.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user