const evenHexDigit = (hex: string) => (hex.length % 2 !== 0 ? `0${hex}` : hex);

export const removeHex0x = (hex: string): string => {
  hex.slice(0, 2) === "0x" ? hex.slice(2) : hex;
  return hex;
};

export const handleHex = (hex: string) => evenHexDigit(removeHex0x(hex));
