Change type hex to bytes_hex and add type string_hex