From 6afe8e789694947c92179cf4d9f957f9c1808257 Mon Sep 17 00:00:00 2001 From: Thomas Letan Date: Thu, 28 Jul 2022 12:10:04 +0100 Subject: [PATCH] Proto/Scoru: Parse wasm bootsector from Hex value The 'parse_boot_sector' function, albeit defined in the protocol, in only used by the 'tezos-client' to parse the boot sector provided as its command line argument. Since the WASM boot sector is expected to be of binary format, the current implementation is too fragile, and we propose to modify it to make so 'tezos-client' expect a hex encoded string instead. --- src/proto_alpha/lib_protocol/sc_rollup_wasm.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proto_alpha/lib_protocol/sc_rollup_wasm.ml b/src/proto_alpha/lib_protocol/sc_rollup_wasm.ml index cedfd122e072..09c0b877bf93 100644 --- a/src/proto_alpha/lib_protocol/sc_rollup_wasm.ml +++ b/src/proto_alpha/lib_protocol/sc_rollup_wasm.ml @@ -146,7 +146,7 @@ module V2_0_0 = struct let name = "wasm_2_0_0" - let parse_boot_sector s = Some s + let parse_boot_sector s = Hex.to_string @@ `Hex s let pp_boot_sector fmt s = Format.fprintf fmt "%s" s -- GitLab