mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
FixedBytes(0) is invalid, do not check for it in ABIEncoderV2
This commit is contained in:
parent
bc73617f5e
commit
eccc603291
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user