FixedBytes(0) is invalid, do not check for it in ABIEncoderV2

This commit is contained in:
Alex Beregszaszi
2018-08-06 16:54:05 +02:00
committed by chriseth
parent bc73617f5e
commit eccc603291
+2 -1
View File
@@ -228,7 +228,8 @@ string ABIFunctions::cleanupFunction(Type const& _type, bool _revertOnFailure)
if (type.numBytes() == 32)
templ("body", "cleaned := value");
else if (type.numBytes() == 0)
templ("body", "cleaned := 0");
// This is disallowed in the type system.
solAssert(false, "");
else
{
size_t numBits = type.numBytes() * 8;