aboutsummaryrefslogtreecommitdiffstats
path: root/javascript
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-29 01:22:53 +0800
committerobscuren <geffobscura@gmail.com>2015-01-29 01:22:53 +0800
commit45e15f62f594d6f5191e60a54aead33602838e98 (patch)
tree5b82273df6a23c219d1e97dbb86b4bdcb620374a /javascript
parentfb7c03ff4dc759f7dd2fc5cee65b46111cbb7375 (diff)
parent7f638f0b2d8d989be25e660178d79df3278e4c84 (diff)
downloadgo-tangerine-45e15f62f594d6f5191e60a54aead33602838e98.tar.gz
go-tangerine-45e15f62f594d6f5191e60a54aead33602838e98.tar.zst
go-tangerine-45e15f62f594d6f5191e60a54aead33602838e98.zip
merge jsonrpc
Diffstat (limited to 'javascript')
-rw-r--r--javascript/types.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/javascript/types.go b/javascript/types.go
index d85e24c88..2da4a76f8 100644
--- a/javascript/types.go
+++ b/javascript/types.go
@@ -70,16 +70,8 @@ func (self *JSEthereum) Block(v interface{}) otto.Value {
return otto.UndefinedValue()
}
-func (self *JSEthereum) Peers() otto.Value {
- return self.toVal(self.JSXEth.Peers())
-}
-
-func (self *JSEthereum) Key() otto.Value {
- return self.toVal(self.JSXEth.Key())
-}
-
func (self *JSEthereum) GetStateObject(addr string) otto.Value {
- return self.toVal(&JSStateObject{xeth.NewJSObject(self.JSXEth.World().SafeGet(ethutil.Hex2Bytes(addr))), self})
+ return self.toVal(&JSStateObject{xeth.NewJSObject(self.JSXEth.State().SafeGet(addr)), self})
}
func (self *JSEthereum) Transact(key, recipient, valueStr, gasStr, gasPriceStr, dataStr string) otto.Value {