merge upstream
This commit is contained in:
@ -144,7 +144,7 @@ func (self *JSRE) initStdFuncs() {
|
||||
eth.Set("require", self.require)
|
||||
eth.Set("stopMining", self.stopMining)
|
||||
eth.Set("startMining", self.startMining)
|
||||
eth.Set("blockDo", self.execBlock)
|
||||
eth.Set("execBlock", self.execBlock)
|
||||
}
|
||||
|
||||
/*
|
||||
@ -221,7 +221,7 @@ func (self *JSRE) execBlock(call otto.FunctionCall) otto.Value {
|
||||
return otto.UndefinedValue()
|
||||
}
|
||||
|
||||
err = self.ethereum.BlockDo(ethutil.FromHex(hash))
|
||||
err = utils.BlockDo(self.ethereum, ethutil.FromHex(hash))
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return otto.FalseValue()
|
||||
|
Reference in New Issue
Block a user