[go: up one dir, main page]

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 to Hex.to_*_exn in the protocol environment.
  • Re-add wrapped versions of Hex.to_* functions using option types.
  • Replace the uses of Hex.to_bytes by Hex.to_bytes_exn or new Hex.to_bytes with option type.
Edited by satos

Merge request reports

Loading