From d6dfff1ce90d184d429d1a1355a3fb39b34cffbd Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Wed, 23 Apr 2014 18:05:13 +0100 Subject: [PATCH] Fix for QEthereum. --- libqethereum/QEthereum.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libqethereum/QEthereum.h b/libqethereum/QEthereum.h index 295307372..de35aaaa8 100644 --- a/libqethereum/QEthereum.h +++ b/libqethereum/QEthereum.h @@ -196,7 +196,7 @@ public: Q_INVOKABLE QString stringOf(QVariant _t) const { return QString::fromStdString(eth::toString(in(_t))); } Q_INVOKABLE QByteArray bytesOf(QVariant _t) const { eth::h256 b = in(_t); return QByteArray((char const*)&b, sizeof(eth::h256)); } - Q_INVOKABLE QVariant fromHex(QString _s) const { return out(eth::u256(_s.toStdString())); } + Q_INVOKABLE QVariant fromHex(QString _s) const { return out((eth::u256)eth::h256(_s.toStdString())); } Q_INVOKABLE QVariant fromAddress(QVariant/*eth::Address*/ _a) const { return out((eth::u160)to(_a)); } Q_INVOKABLE QVariant toAddress(QVariant/*eth::Address*/ _a) const { return toQJS((eth::u160)in(_a)); }