aboutsummaryrefslogtreecommitdiffstats
path: root/libdevcore/FixedHash.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-12-06 03:34:27 +0800
committerchriseth <chris@ethereum.org>2018-12-06 05:37:05 +0800
commit3a378eae1a57683d0f31ab54c122b2a5c6a7c8bb (patch)
tree0d69fe0cf64211a9faad76b9dd87573826f1de2c /libdevcore/FixedHash.h
parent15e28fa444843d6b8e5bef81ae9fc73a41ae97f6 (diff)
downloaddexon-solidity-3a378eae1a57683d0f31ab54c122b2a5c6a7c8bb.tar.gz
dexon-solidity-3a378eae1a57683d0f31ab54c122b2a5c6a7c8bb.tar.zst
dexon-solidity-3a378eae1a57683d0f31ab54c122b2a5c6a7c8bb.zip
Restrict toHex to `bytes`.
Diffstat (limited to 'libdevcore/FixedHash.h')
-rw-r--r--libdevcore/FixedHash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdevcore/FixedHash.h b/libdevcore/FixedHash.h
index 24b89840..9245d726 100644
--- a/libdevcore/FixedHash.h
+++ b/libdevcore/FixedHash.h
@@ -95,7 +95,7 @@ public:
uint8_t operator[](unsigned _i) const { return m_data[_i]; }
/// @returns the hash as a user-readable hex string.
- std::string hex() const { return toHex(ref()); }
+ std::string hex() const { return toHex(asBytes()); }
/// @returns a mutable byte vector_ref to the object's data.
bytesRef ref() { return bytesRef(m_data.data(), N); }