aboutsummaryrefslogtreecommitdiffstats
path: root/javascript
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-09-18 17:27:55 +0800
committerobscuren <geffobscura@gmail.com>2014-09-18 17:27:55 +0800
commit728005722853028348909e1d458593415cb52660 (patch)
treea68250f84017f9e303433fe24b9716d9d062b7aa /javascript
parent01863ebff06d620c9d3a8cf9195d72caeb11dc19 (diff)
downloadgo-tangerine-728005722853028348909e1d458593415cb52660.tar.gz
go-tangerine-728005722853028348909e1d458593415cb52660.tar.zst
go-tangerine-728005722853028348909e1d458593415cb52660.zip
Minor visual updates
Diffstat (limited to 'javascript')
-rw-r--r--javascript/types.go4
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 {