Temp work around

This commit is contained in:
obscuren 2014-09-24 20:40:18 +02:00
parent 96fd1ce270
commit 1cb12296f6
3 changed files with 6 additions and 6 deletions

View File

@ -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)
}

View File

@ -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()