aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum/repl.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-21 20:04:54 +0800
committerobscuren <geffobscura@gmail.com>2014-05-21 20:04:54 +0800
commit7f1a4c377c18055137909521d809251248b7b5af (patch)
tree75afd9a91da3daa7123f6083647795cdbc3fca7a /ethereum/repl.go
parentc07c454935609bfb0f65dc38bb596a90d5493fbb (diff)
parent3ddaf56afd919d1bc435379861a3ab37f3392116 (diff)
downloaddexon-7f1a4c377c18055137909521d809251248b7b5af.tar
dexon-7f1a4c377c18055137909521d809251248b7b5af.tar.gz
dexon-7f1a4c377c18055137909521d809251248b7b5af.tar.bz2
dexon-7f1a4c377c18055137909521d809251248b7b5af.tar.lz
dexon-7f1a4c377c18055137909521d809251248b7b5af.tar.xz
dexon-7f1a4c377c18055137909521d809251248b7b5af.tar.zst
dexon-7f1a4c377c18055137909521d809251248b7b5af.zip
Merge branch 'release/poc5-rc8'
Diffstat (limited to 'ethereum/repl.go')
-rw-r--r--ethereum/repl.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/ethereum/repl.go b/ethereum/repl.go
index c0b63c0a5..d1243d19c 100644
--- a/ethereum/repl.go
+++ b/ethereum/repl.go
@@ -4,7 +4,7 @@ import (
"fmt"
"github.com/ethereum/eth-go"
"github.com/ethereum/eth-go/ethpub"
- "github.com/robertkrimen/otto"
+ "github.com/obscuren/otto"
)
type Repl interface {
@@ -53,6 +53,10 @@ type JSEthereum struct {
vm *otto.Otto
}
+func (self *JSEthereum) GetBlock(hash string) otto.Value {
+ return self.toVal(self.PEthereum.GetBlock(hash))
+}
+
func (self *JSEthereum) GetKey() otto.Value {
return self.toVal(self.PEthereum.GetKey())
}