Moved BlockDo to utils

This commit is contained in:
obscuren
2014-06-25 09:47:11 +02:00
parent fd1ddbce68
commit 1e965cb8f5
2 changed files with 20 additions and 1 deletions

View File

@ -215,7 +215,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()