diff options
author | chriseth <chris@ethereum.org> | 2018-07-11 03:23:00 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-07-11 03:23:20 +0800 |
commit | 383b88793c3c72a7d8d216cbd9576b49270191a6 (patch) | |
tree | 78d466ea61de7aef1f70da96dc0c2d01890fc5f6 /libsolidity/codegen | |
parent | 12045d2e110348950c81963adcd1a6fe6b42143f (diff) | |
download | dexon-solidity-383b88793c3c72a7d8d216cbd9576b49270191a6.tar dexon-solidity-383b88793c3c72a7d8d216cbd9576b49270191a6.tar.gz dexon-solidity-383b88793c3c72a7d8d216cbd9576b49270191a6.tar.bz2 dexon-solidity-383b88793c3c72a7d8d216cbd9576b49270191a6.tar.lz dexon-solidity-383b88793c3c72a7d8d216cbd9576b49270191a6.tar.xz dexon-solidity-383b88793c3c72a7d8d216cbd9576b49270191a6.tar.zst dexon-solidity-383b88793c3c72a7d8d216cbd9576b49270191a6.zip |
Throw unimplemented exception for complex calldata arrays.
Diffstat (limited to 'libsolidity/codegen')
-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 4818e111..b3f1bc7e 100644 --- a/libsolidity/codegen/ABIFunctions.cpp +++ b/libsolidity/codegen/ABIFunctions.cpp @@ -1188,7 +1188,8 @@ string ABIFunctions::abiDecodingFunctionCalldataArray(ArrayType const& _type) solAssert(_type.dataStoredIn(DataLocation::CallData), ""); if (!_type.isDynamicallySized()) solAssert(_type.length() < u256("0xffffffffffffffff"), ""); - solAssert(!_type.baseType()->isDynamicallyEncoded(), ""); + if (_type.baseType()->isDynamicallyEncoded()) + solUnimplemented("Calldata arrays with non-value base types are not yet supported by Solidity."); solAssert(_type.baseType()->calldataEncodedSize() < u256("0xffffffffffffffff"), ""); string functionName = |