How to recreate a PoolByteArray from a hex-encoded string?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By tx350z

I’m sure I’m missing something. PoolByteArray.hex_encode() returns the array as a hex-encoded string.

Is there a simple method to recreate the original PoolByteArray from that hex encoded string?