From 1cb12296f6a0107acd0ed18b28c1d5e414c10bcf Mon Sep 17 00:00:00 2001 From: obscuren Date: Wed, 24 Sep 2014 20:40:18 +0200 Subject: [PATCH] Temp work around --- mist/assets/qml/views/jeffcoin/jeffcoin.qml | 6 +++--- mist/assets/qml/views/wallet.qml | 2 +- mist/ui_lib.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mist/assets/qml/views/jeffcoin/jeffcoin.qml b/mist/assets/qml/views/jeffcoin/jeffcoin.qml index dc8678d1c..6506b53b8 100644 --- a/mist/assets/qml/views/jeffcoin/jeffcoin.qml +++ b/mist/assets/qml/views/jeffcoin/jeffcoin.qml @@ -47,9 +47,9 @@ Rectangle { }); var blockNumber = eth.block(-1).number; - var messages = filter.messages() - for(var i = messages.length-1; i >= 0; i--) { - var message = messages.get(i) + var msgs = filter.messages() + for(var i = msgs.length-1; i >= 0; i--) { + var message = JSON.parse(msgs.getAsJson(i)) insertTx(message, blockNumber) } diff --git a/mist/assets/qml/views/wallet.qml b/mist/assets/qml/views/wallet.qml index fbe1dfd0e..a3a4a6e7c 100644 --- a/mist/assets/qml/views/wallet.qml +++ b/mist/assets/qml/views/wallet.qml @@ -151,7 +151,7 @@ Rectangle { model: ListModel { id: txModel Component.onCompleted: { - var filter = ethx.watch({latest: -1, from: eth.key().address}); + var filter = ethx.watch({latest: -1, from: eth.key().address}); filter.changed(addTxs) addTxs(filter.messages()) diff --git a/mist/ui_lib.go b/mist/ui_lib.go index e5ddd38c8..e1963aa86 100644 --- a/mist/ui_lib.go +++ b/mist/ui_lib.go @@ -188,9 +188,9 @@ func (self *UiLib) NewFilterString(typ string) int { func (self *UiLib) Messages(id int) *ethutil.List { filter := self.eth.GetFilter(id) if filter != nil { - messages := filter.Find() + messages := ethpipe.ToJSMessages(filter.Find()) - return ethpipe.ToJSMessages(messages) + return messages } return ethutil.EmptyList()