Fix ABIEncoderV2 array overwrite bug.

This commit is contained in:
chriseth
2019-03-25 18:28:43 +01:00
parent 3039456f48
commit 6b69c31703
3 changed files with 74 additions and 11 deletions
+8
View File
@@ -2842,6 +2842,14 @@ u256 FunctionType::storageSize() const
solAssert(false, "Storage size of non-storable function type requested.");
}
bool FunctionType::leftAligned() const
{
if (m_kind == Kind::External)
return true;
else
solAssert(false, "Alignment property of non-exportable function type requested.");
}
unsigned FunctionType::storageBytes() const
{
if (m_kind == Kind::External)