aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/Types.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-10-03 04:34:47 +0800
committerchriseth <c@ethdev.com>2015-10-06 20:20:06 +0800
commit421dcf4c1a38a5e691aec5d791155adbcf732c90 (patch)
tree5798cb49bfd01ae81fa4bed88b0104797ea62ea7 /libsolidity/Types.cpp
parent9cc7402c9583ca3bfc9fcb234443d2f90b890190 (diff)
downloaddexon-solidity-421dcf4c1a38a5e691aec5d791155adbcf732c90.tar.gz
dexon-solidity-421dcf4c1a38a5e691aec5d791155adbcf732c90.tar.zst
dexon-solidity-421dcf4c1a38a5e691aec5d791155adbcf732c90.zip
Tests apart from new one work fine.
Diffstat (limited to 'libsolidity/Types.cpp')
-rw-r--r--libsolidity/Types.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/libsolidity/Types.cpp b/libsolidity/Types.cpp
index f7e67696..faac2447 100644
--- a/libsolidity/Types.cpp
+++ b/libsolidity/Types.cpp
@@ -847,6 +847,14 @@ TypePointer ArrayType::encodingType() const
return this->copyForLocation(DataLocation::Memory, true);
}
+TypePointer ArrayType::decodingType() const
+{
+ if (location() == DataLocation::Storage)
+ return make_shared<IntegerType>(256);
+ else
+ return shared_from_this();
+}
+
TypePointer ArrayType::interfaceType(bool _inLibrary) const
{
if (_inLibrary && location() == DataLocation::Storage)