diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-08-02 22:22:33 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-08-06 22:54:05 +0800 |
commit | eccc603291737ad20c74b45989201d71268a6727 (patch) | |
tree | 1e5c7520d6d3051e60ae0ae82714d04e629c9b6d /libsolidity/codegen/ABIFunctions.cpp | |
parent | bc73617f5ebc6d8f254b8e7faa630738c9967bd5 (diff) | |
download | dexon-solidity-eccc603291737ad20c74b45989201d71268a6727.tar.gz dexon-solidity-eccc603291737ad20c74b45989201d71268a6727.tar.zst dexon-solidity-eccc603291737ad20c74b45989201d71268a6727.zip |
FixedBytes(0) is invalid, do not check for it in ABIEncoderV2
Diffstat (limited to 'libsolidity/codegen/ABIFunctions.cpp')
-rw-r--r-- | libsolidity/codegen/ABIFunctions.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libsolidity/codegen/ABIFunctions.cpp b/libsolidity/codegen/ABIFunctions.cpp index 1ce77d67..dda77958 100644 --- a/libsolidity/codegen/ABIFunctions.cpp +++ b/libsolidity/codegen/ABIFunctions.cpp @@ -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; |