aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-03-12 00:41:12 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-03-12 19:53:00 +0800
commitb8cede371dc5b7d5c40188dbb65eff293d7dd6ff (patch)
treeeb0a3057c8b56be4801e195cd7839ab18183b0e6 /Types.cpp
parentcd3e8c175645e9a6a81b5b719868b1f74a528c65 (diff)
downloaddexon-solidity-b8cede371dc5b7d5c40188dbb65eff293d7dd6ff.tar.gz
dexon-solidity-b8cede371dc5b7d5c40188dbb65eff293d7dd6ff.tar.zst
dexon-solidity-b8cede371dc5b7d5c40188dbb65eff293d7dd6ff.zip
byte is now an alias for byte1
Diffstat (limited to 'Types.cpp')
-rw-r--r--Types.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Types.cpp b/Types.cpp
index 8524cb8b..aacf56fa 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -61,6 +61,8 @@ TypePointer Type::fromElementaryTypeName(Token::Value _typeToken)
return TypePointer();
}
}
+ else if (_typeToken == Token::Byte)
+ return make_shared<FixedBytesType>(1);
else if (_typeToken == Token::Address)
return make_shared<IntegerType>(0, IntegerType::Modifier::Address);
else if (_typeToken == Token::Bool)