Fixups for new bytes.rs API.

This commit is contained in:
Gav Wood 2016-01-08 11:53:07 +01:00
parent e6439dde99
commit 6837899eba
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ pub fn new_builtin_exec(name: &str) -> Option<Box<Fn(&[u8], &mut [u8])>> {
s: H256,
}
let mut it: InType = InType { hash: H256::new(), v: H256::new(), r: H256::new(), s: H256::new() };
it.copy_from_raw(input);
it.fax_raw(input);
if it.v == H256::from(&U256::from(27)) || it.v == H256::from(&U256::from(28)) {
let s = Signature::from_rsv(&it.r, &it.s, it.v[31] - 27);
if is_valid(&s) {