aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum/repl.go
diff options
context:
space:
mode:
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())
}