pub fn upload_data(map: HashMap<Vec<u8>, Vec<u8>>) {
        map.into_iter().for_each(|(k, v)| {
            State::storage_map().write().expect("couldn't open map").insert(k, v);
        });
    }
// upload data to the hashmap.
upload data to the hashmap.
upload data to the hashmap .
pub fn upload_data(map: HashMap<Vec<u8>, Vec<u8>>) {
        map.into_iter().for_each(|(k, v)| {
            State::storage_map().write().expect("couldn't open map").insert(k, v);
        });
    }
pub fn upload_data ( map : HashMap < Vec < u8 > , Vec < u8 > > ) { map . into_iter ( ) . for_each ( | ( k , v ) | { State :: storage_map ( ) . write ( ) . expect ( " " ) . insert ( k , v ) ; } ) ; }
upload data to the hashmap.
upload data to the hashmap .
map
HashMap<Vec<u8>, Vec<u8>>