aboutsummaryrefslogtreecommitdiffstats
path: root/libdevcore/FixedHash.h
diff options
context:
space:
mode:
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); }