static fun fromHexString(str: String): Address
(source)
Parse a hexadecimal string into a Address.
str
- The hexadecimal string to parse, which may or may not start with "0x", and should encode exactly 20 bytes.
IllegalArgumentException
- if str
does not correspond to va alid hexadecimal representation containing 20 bytes.
Return
The value corresponding to str
.