diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-20 18:03:31 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-20 18:03:31 +0800 |
commit | 6ea44c466a5c3383dd4e21a57423edbf33a52e6f (patch) | |
tree | da7c995341607f5b9dc362460ed762dc3f8541c2 /javascript | |
parent | 82a2e4fe283d15eaacc554544131bd6669210f79 (diff) | |
download | go-tangerine-6ea44c466a5c3383dd4e21a57423edbf33a52e6f.tar go-tangerine-6ea44c466a5c3383dd4e21a57423edbf33a52e6f.tar.gz go-tangerine-6ea44c466a5c3383dd4e21a57423edbf33a52e6f.tar.bz2 go-tangerine-6ea44c466a5c3383dd4e21a57423edbf33a52e6f.tar.lz go-tangerine-6ea44c466a5c3383dd4e21a57423edbf33a52e6f.tar.xz go-tangerine-6ea44c466a5c3383dd4e21a57423edbf33a52e6f.tar.zst go-tangerine-6ea44c466a5c3383dd4e21a57423edbf33a52e6f.zip |
Updated to reflect BlockChain changes
Diffstat (limited to 'javascript')
-rw-r--r-- | javascript/javascript_runtime.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/javascript/javascript_runtime.go b/javascript/javascript_runtime.go index 16e22964f..189106ae9 100644 --- a/javascript/javascript_runtime.go +++ b/javascript/javascript_runtime.go @@ -139,10 +139,10 @@ func (self *JSRE) dump(call otto.FunctionCall) otto.Value { var block *ethchain.Block if call.Argument(0).IsNumber() { num, _ := call.Argument(0).ToInteger() - block = self.ethereum.BlockChain().GetBlockByNumber(uint64(num)) + block = self.ethereum.ChainManager().GetBlockByNumber(uint64(num)) } else if call.Argument(0).IsString() { hash, _ := call.Argument(0).ToString() - block = self.ethereum.BlockChain().GetBlock(ethutil.Hex2Bytes(hash)) + block = self.ethereum.ChainManager().GetBlock(ethutil.Hex2Bytes(hash)) } else { fmt.Println("invalid argument for dump. Either hex string or number") } |