return hash from wasm

This commit is contained in:
Alexey 2020-04-27 17:36:15 +03:00 committed by poma
parent d0accedf87
commit 9c6608773d
No known key found for this signature in database
GPG Key ID: BA20CB01FE165657

@ -81,7 +81,12 @@ cfg_if! {
let mut output: Vec<u8> = vec![]; let mut output: Vec<u8> = vec![];
params.write(&mut output).expect("failed to write updated parameters"); params.write(&mut output).expect("failed to write updated parameters");
log!("Returning parameters"); log!("Returning parameters");
Ok(output)
Ok(hash
.iter().cloned()
.chain(output.iter().cloned())
.collect()
)
} }
} }
} }