SecretSTore: fix after merge from secretstore_kovan_1_8

This commit is contained in:
Svyatoslav Nikolsky 2017-11-20 19:41:53 +03:00
parent 32edb33608
commit af409eba07
2 changed files with 2 additions and 2 deletions

2
Cargo.lock generated
View File

@ -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",

View File

@ -134,7 +134,7 @@ pub fn {snake_name}<F, U>(&self, call: F, {params}) -> BoxFuture<{output_type},
pub fn encode_{snake_name}_input(&self, {params}) -> Result<Vec<u8>, 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))
}}
"##,