pub fn to_hex_string(bytes: [u8; 32]) -> String
Expand description
Convert a [u8; 32] to a string of hex bytes separated by spaces, with revelent bytes in green.
§Arguments
bytes
- The [u8; 32] to convert
§Returns
Returns a String with the colored hex bytes separated by spaces
§Example
use evm_rs_emulator::debug::to_hex_string;
let bytes = [255u8; 32];
let hex_string = to_hex_string(bytes);
assert_eq!(hex_string, "ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff");