aboutsummaryrefslogtreecommitdiffstats
path: root/Types.h
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-03-05 00:43:40 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-03-12 19:53:00 +0800
commitbede2f2ad7eb023018ab2faac17286fdee82b03c (patch)
treeed1b2a2f62a01bc61c29e7adab2a5131da5aa218 /Types.h
parent36fe571576a7e5af91d9f95ff0a2252394720a34 (diff)
downloaddexon-solidity-bede2f2ad7eb023018ab2faac17286fdee82b03c.tar
dexon-solidity-bede2f2ad7eb023018ab2faac17286fdee82b03c.tar.gz
dexon-solidity-bede2f2ad7eb023018ab2faac17286fdee82b03c.tar.bz2
dexon-solidity-bede2f2ad7eb023018ab2faac17286fdee82b03c.tar.lz
dexon-solidity-bede2f2ad7eb023018ab2faac17286fdee82b03c.tar.xz
dexon-solidity-bede2f2ad7eb023018ab2faac17286fdee82b03c.tar.zst
dexon-solidity-bede2f2ad7eb023018ab2faac17286fdee82b03c.zip
More changes towards getting rid of HashXX
Diffstat (limited to 'Types.h')
-rw-r--r--Types.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Types.h b/Types.h
index 6cef8d64..3d67720c 100644
--- a/Types.h
+++ b/Types.h
@@ -165,7 +165,7 @@ class IntegerType: public Type
public:
enum class Modifier
{
- Unsigned, Signed, Hash, Address
+ Unsigned, Signed, Bytes, Address
};
virtual Category getCategory() const override { return Category::Integer; }
@@ -186,7 +186,7 @@ public:
virtual std::string toString() const override;
int getNumBits() const { return m_bits; }
- bool isHash() const { return m_modifier == Modifier::Hash || m_modifier == Modifier::Address; }
+ bool isBytes() const { return m_modifier == Modifier::Bytes || m_modifier == Modifier::Address; }
bool isAddress() const { return m_modifier == Modifier::Address; }
bool isSigned() const { return m_modifier == Modifier::Signed; }