diff options
author | obscuren <geffobscura@gmail.com> | 2014-09-18 17:27:55 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-09-18 17:27:55 +0800 |
commit | 728005722853028348909e1d458593415cb52660 (patch) | |
tree | a68250f84017f9e303433fe24b9716d9d062b7aa /javascript | |
parent | 01863ebff06d620c9d3a8cf9195d72caeb11dc19 (diff) | |
download | go-tangerine-728005722853028348909e1d458593415cb52660.tar go-tangerine-728005722853028348909e1d458593415cb52660.tar.gz go-tangerine-728005722853028348909e1d458593415cb52660.tar.bz2 go-tangerine-728005722853028348909e1d458593415cb52660.tar.lz go-tangerine-728005722853028348909e1d458593415cb52660.tar.xz go-tangerine-728005722853028348909e1d458593415cb52660.tar.zst go-tangerine-728005722853028348909e1d458593415cb52660.zip |
Minor visual updates
Diffstat (limited to 'javascript')
-rw-r--r-- | javascript/types.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/javascript/types.go b/javascript/types.go index afa0a41c6..53a2977a8 100644 --- a/javascript/types.go +++ b/javascript/types.go @@ -88,6 +88,10 @@ func (self *JSEthereum) GetStateObject(addr string) otto.Value { return self.toVal(&JSStateObject{ethpipe.NewJSObject(self.JSPipe.World().SafeGet(ethutil.Hex2Bytes(addr))), self}) } +func (self *JSEthereum) Peers() otto.Value { + return self.toVal(self.JSPipe.Peers()) +} + func (self *JSEthereum) Transact(key, recipient, valueStr, gasStr, gasPriceStr, dataStr string) otto.Value { r, err := self.JSPipe.Transact(key, recipient, valueStr, gasStr, gasPriceStr, dataStr) if err != nil { |