Consider non-external functions not left-aligned.

This commit is contained in:
chriseth
2021-09-29 11:44:17 +02:00
parent cb052611cf
commit 77932edb02
3 changed files with 16 additions and 25 deletions
+1 -4
View File
@@ -3072,10 +3072,7 @@ u256 FunctionType::storageSize() const
bool FunctionType::leftAligned() const
{
if (m_kind == Kind::External)
return true;
else
solAssert(false, "Alignment property of non-exportable function type requested.");
return m_kind == Kind::External;
}
unsigned FunctionType::storageBytes() const