Merge branch 'master' of github.com:ethcore/parity into presale_wallet

This commit is contained in:
debris
2016-06-21 15:19:31 +02:00
14 changed files with 294 additions and 74 deletions

View File

@@ -31,3 +31,11 @@ impl From<json::H160> for Address {
From::from(a)
}
}
impl<'a> From<&'a json::H160> for Address {
fn from(json: &'a json::H160) -> Self {
let mut a = [0u8; 20];
a.copy_from_slice(json);
From::from(a)
}
}