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

This commit is contained in:
Alex Beregszaszi 2018-08-02 15:22:33 +01:00 committed by chriseth
parent bc73617f5e
commit eccc603291

View File

@ -228,7 +228,8 @@ string ABIFunctions::cleanupFunction(Type const& _type, bool _revertOnFailure)
if (type.numBytes() == 32) if (type.numBytes() == 32)
templ("body", "cleaned := value"); templ("body", "cleaned := value");
else if (type.numBytes() == 0) else if (type.numBytes() == 0)
templ("body", "cleaned := 0"); // This is disallowed in the type system.
solAssert(false, "");
else else
{ {
size_t numBits = type.numBytes() * 8; size_t numBits = type.numBytes() * 8;