diff options
author | obscuren <geffobscura@gmail.com> | 2015-01-29 01:14:28 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-01-29 01:14:28 +0800 |
commit | 7f638f0b2d8d989be25e660178d79df3278e4c84 (patch) | |
tree | 85c74ca9ca6c604df04e13c9d90d8af15b99e8d6 /javascript | |
parent | b46e1ca97e61ebfe4c37961e723142245efe5016 (diff) | |
download | dexon-7f638f0b2d8d989be25e660178d79df3278e4c84.tar dexon-7f638f0b2d8d989be25e660178d79df3278e4c84.tar.gz dexon-7f638f0b2d8d989be25e660178d79df3278e4c84.tar.bz2 dexon-7f638f0b2d8d989be25e660178d79df3278e4c84.tar.lz dexon-7f638f0b2d8d989be25e660178d79df3278e4c84.tar.xz dexon-7f638f0b2d8d989be25e660178d79df3278e4c84.tar.zst dexon-7f638f0b2d8d989be25e660178d79df3278e4c84.zip |
moving to a better xeth
Diffstat (limited to 'javascript')
-rw-r--r-- | javascript/types.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/javascript/types.go b/javascript/types.go index 61a57033b..3f30fa92b 100644 --- a/javascript/types.go +++ b/javascript/types.go @@ -82,16 +82,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 { |