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)
downloadgo-tangerine-7f1a4c377c18055137909521d809251248b7b5af.tar
go-tangerine-7f1a4c377c18055137909521d809251248b7b5af.tar.gz
go-tangerine-7f1a4c377c18055137909521d809251248b7b5af.tar.bz2
go-tangerine-7f1a4c377c18055137909521d809251248b7b5af.tar.lz
go-tangerine-7f1a4c377c18055137909521d809251248b7b5af.tar.xz
go-tangerine-7f1a4c377c18055137909521d809251248b7b5af.tar.zst
go-tangerine-7f1a4c377c18055137909521d809251248b7b5af.zip
Merge branch 'release/poc5-rc8'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())
}