Fixing last hashes for ethcall (#3043)

This commit is contained in:
Tomasz Drwięga 2016-11-01 11:24:46 +01:00 committed by Gav Wood
parent 71662bb219
commit 8c1f8700ec

View File

@ -768,7 +768,7 @@ impl BlockChainClient for Client {
fn call(&self, t: &SignedTransaction, block: BlockID, analytics: CallAnalytics) -> Result<Executed, CallError> {
let header = try!(self.block_header(block).ok_or(CallError::StatePruned));
let view = HeaderView::new(&header);
let last_hashes = self.build_last_hashes(view.hash());
let last_hashes = self.build_last_hashes(view.parent_hash());
let env_info = EnvInfo {
number: view.number(),
author: view.author(),