From 6a820a46fa9e2866cc582644e91d5b751cce1a0c Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Wed, 19 Feb 2014 23:16:10 +0000 Subject: [PATCH] Minor address fix. --- alethzero/MainWin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alethzero/MainWin.cpp b/alethzero/MainWin.cpp index c6927b047..ed9a0978f 100644 --- a/alethzero/MainWin.cpp +++ b/alethzero/MainWin.cpp @@ -88,7 +88,7 @@ Address Main::fromString(QString const& _a) const memset(n.data() + sn.size(), 0, 32 - sn.size()); if (h256 a = m_client->state().contractMemory(c_nameContract, n)) return right160(a); - if (_a.size() == 32) + if (_a.size() == 40) return Address(fromUserHex(_a.toStdString())); else return Address();