@ethereumjs/util
@ethereumjs/util / addHexPrefix
addHexPrefix(str): `0x${string}`
str
`0x${string}`
Defined in: packages/util/src/bytes.ts:284
Add a 0x prefix when the string is not already hex-prefixed.
0x
string