This commit is contained in:
Simon Gardling
2022-06-18 20:41:18 -04:00
parent 746d43a460
commit 1110e92ef3
2 changed files with 50 additions and 50 deletions

View File

@@ -143,7 +143,7 @@ pub const HASH_LENGTH: usize = 8;
pub type HashBytes = [u8; HASH_LENGTH];
#[allow(dead_code)]
pub fn hashed_storage_create<'a>(hash: &HashBytes, data: &[u8]) -> String {
pub fn hashed_storage_create(hash: &HashBytes, data: &[u8]) -> String {
unsafe { std::mem::transmute::<Vec<u8>, String>([hash, data].concat()) }
}