Function integer_to_bytes

Source
pub fn integer_to_bytes(integer: u32) -> Vec<u8> 
Expand description

Converts u32 into vector of bytes

Should be used for any Attribute of type integer to ensure value is encoded correctly