Updated to reflect the Filter changes in eth-go

This commit is contained in:
obscuren
2014-10-18 13:20:35 +02:00
parent e57989c0a6
commit 77badc8c46
3 changed files with 7 additions and 5 deletions

View File

@ -4,10 +4,10 @@ import (
"fmt"
"github.com/ethereum/eth-go"
"github.com/ethereum/eth-go/ethchain"
"github.com/ethereum/eth-go/ethpipe"
"github.com/ethereum/eth-go/ethstate"
"github.com/ethereum/eth-go/ethutil"
"github.com/ethereum/eth-go/ui"
"github.com/obscuren/otto"
)
@ -128,7 +128,7 @@ func (self *JSEthereum) toVal(v interface{}) otto.Value {
}
func (self *JSEthereum) Messages(object map[string]interface{}) otto.Value {
filter := ethchain.NewFilterFromMap(object, self.ethereum)
filter := ui.NewFilterFromMap(object, self.ethereum)
messages := filter.Find()
var msgs []JSMessage