3

In solidity, I can take advantage of the hex literal in order to get back the corresponding hex value of a string, in the following way:

hex"001122FF"

I am wondering how to apply such literal on a variable. Let's say my hex string is a constant hexValue.

How can I apply the literal on hexValue?

Thanks for the help

Riccardo Perego
  • 352
  • 1
  • 13

0 Answers0