diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-10 00:55:01 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-10 00:55:01 +0800 |
commit | 8560004f380dc688a1171ad5aeffa593aae41193 (patch) | |
tree | fea395acf042b51e97a86e2c4cbcf8c16b2912b7 /javascript/types.go | |
parent | 9723191b19f6ddc12f0c3376ede7529b2d72e6a2 (diff) | |
parent | 676a0de58d3d7c508b0eeeff192d2095a46f7382 (diff) | |
download | go-tangerine-8560004f380dc688a1171ad5aeffa593aae41193.tar.gz go-tangerine-8560004f380dc688a1171ad5aeffa593aae41193.tar.zst go-tangerine-8560004f380dc688a1171ad5aeffa593aae41193.zip |
wip
Diffstat (limited to 'javascript/types.go')
-rw-r--r-- | javascript/types.go | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/javascript/types.go b/javascript/types.go index 001b50a70..3921f4843 100644 --- a/javascript/types.go +++ b/javascript/types.go @@ -2,11 +2,8 @@ package javascript import ( "fmt" - - "github.com/ethereum/go-ethereum/eth" "github.com/ethereum/go-ethereum/ethutil" "github.com/ethereum/go-ethereum/state" - "github.com/ethereum/go-ethereum/ui" "github.com/ethereum/go-ethereum/xeth" "github.com/obscuren/otto" ) @@ -56,8 +53,7 @@ func NewJSLog(log state.Log) JSLog { type JSEthereum struct { *xeth.XEth - vm *otto.Otto - ethereum *eth.Ethereum + vm *otto.Otto } func (self *JSEthereum) Block(v interface{}) otto.Value { @@ -96,17 +92,3 @@ func (self *JSEthereum) toVal(v interface{}) otto.Value { return result } - -func (self *JSEthereum) Messages(object map[string]interface{}) otto.Value { - filter := ui.NewFilterFromMap(object, self.ethereum) - - logs := filter.Find() - var jslogs []JSLog - for _, m := range logs { - jslogs = append(jslogs, NewJSLog(m)) - } - - v, _ := self.vm.ToValue(jslogs) - - return v -} |