diff --git a/Cargo.lock b/Cargo.lock index fd4cc2e5d..600970524 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -678,7 +678,7 @@ dependencies = [ "ethcore-util 1.9.0", "ethcrypto 0.1.0", "ethkey 0.2.0", - "ethsync 1.8.0", + "ethsync 1.9.0", "futures 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", "futures-cpupool 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "hash 0.1.0", diff --git a/ethcore/native_contracts/generator/src/lib.rs b/ethcore/native_contracts/generator/src/lib.rs index be71fc395..5986bded4 100644 --- a/ethcore/native_contracts/generator/src/lib.rs +++ b/ethcore/native_contracts/generator/src/lib.rs @@ -134,7 +134,7 @@ pub fn {snake_name}(&self, call: F, {params}) -> BoxFuture<{output_type}, pub fn encode_{snake_name}_input(&self, {params}) -> Result, String> {{ self.contract.function(r#"{abi_name}"#) .expect("function existence checked at compile-time; qed") - .encode_call({to_tokens}) + .encode_input(&{to_tokens}) .map_err(|e| format!("Error encoding call: {{:?}}", e)) }} "##,