From 53add78a283976f3a35fc356f17007ba0310c35c Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Tue, 23 May 2017 15:35:34 +0300 Subject: [PATCH] Fix build (#5684) * missing feature * dapps update --- ethcore/native_contracts/Cargo.toml | 1 + parity/dapps.rs | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ethcore/native_contracts/Cargo.toml b/ethcore/native_contracts/Cargo.toml index 57cca0923..c3ef59d31 100644 --- a/ethcore/native_contracts/Cargo.toml +++ b/ethcore/native_contracts/Cargo.toml @@ -16,3 +16,4 @@ native-contract-generator = { path = "generator" } [features] default = [] +test_contracts = [] \ No newline at end of file diff --git a/parity/dapps.rs b/parity/dapps.rs index a265a72b6..ff0dd2139 100644 --- a/parity/dapps.rs +++ b/parity/dapps.rs @@ -95,7 +95,7 @@ impl ContractClient for LightRegistrar { let maybe_future = self.sync.with_context(move |ctx| { self.on_demand - .transaction_proof(ctx, on_demand::request::TransactionProof { + .request(ctx, on_demand::request::TransactionProof { tx: Transaction { nonce: self.client.engine().account_start_nonce(), action: Action::Call(address), @@ -104,10 +104,11 @@ impl ContractClient for LightRegistrar { value: 0.into(), data: data, }.fake_sign(Address::default()), - header: header, + header: on_demand::request::HeaderRef::Stored(header), env_info: env_info, engine: self.client.engine().clone(), }) + .expect("todo: handle error") .then(|res| match res { Ok(Ok(executed)) => Ok(executed.output), Ok(Err(e)) => Err(format!("Failed to execute transaction: {}", e)),