Proto env v4: interface fix of Hex
Context
Built on top of Env-v4 activation MR: !3468 (merged)
Hex.to_* functions, especially Hex.to_bytes, raise an exception when the input is not a hex string. This exception is not caught in the protocol. This MR patches them in the protocol environment.
Background: !2771 (comment 628831010)
-
Rename Hex.to_*functions toHex.to_*_exnin the protocol environment. -
Re-add wrapped versions of Hex.to_*functions usingoptiontypes. -
Replace the uses of Hex.to_bytesbyHex.to_bytes_exnor newHex.to_byteswith option type.
Edited by satos