forked from cerc-io/plugeth
Temp work around
This commit is contained in:
parent
96fd1ce270
commit
1cb12296f6
@ -47,9 +47,9 @@ Rectangle {
|
|||||||
});
|
});
|
||||||
|
|
||||||
var blockNumber = eth.block(-1).number;
|
var blockNumber = eth.block(-1).number;
|
||||||
var messages = filter.messages()
|
var msgs = filter.messages()
|
||||||
for(var i = messages.length-1; i >= 0; i--) {
|
for(var i = msgs.length-1; i >= 0; i--) {
|
||||||
var message = messages.get(i)
|
var message = JSON.parse(msgs.getAsJson(i))
|
||||||
|
|
||||||
insertTx(message, blockNumber)
|
insertTx(message, blockNumber)
|
||||||
}
|
}
|
||||||
|
@ -151,7 +151,7 @@ Rectangle {
|
|||||||
model: ListModel {
|
model: ListModel {
|
||||||
id: txModel
|
id: txModel
|
||||||
Component.onCompleted: {
|
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)
|
filter.changed(addTxs)
|
||||||
|
|
||||||
addTxs(filter.messages())
|
addTxs(filter.messages())
|
||||||
|
@ -188,9 +188,9 @@ func (self *UiLib) NewFilterString(typ string) int {
|
|||||||
func (self *UiLib) Messages(id int) *ethutil.List {
|
func (self *UiLib) Messages(id int) *ethutil.List {
|
||||||
filter := self.eth.GetFilter(id)
|
filter := self.eth.GetFilter(id)
|
||||||
if filter != nil {
|
if filter != nil {
|
||||||
messages := filter.Find()
|
messages := ethpipe.ToJSMessages(filter.Find())
|
||||||
|
|
||||||
return ethpipe.ToJSMessages(messages)
|
return messages
|
||||||
}
|
}
|
||||||
|
|
||||||
return ethutil.EmptyList()
|
return ethutil.EmptyList()
|
||||||
|
Loading…
Reference in New Issue
Block a user