From 03f117a4b0e018f705d0e547a72a2f7f0751449a Mon Sep 17 00:00:00 2001 From: Emma Turner Date: Fri, 11 Nov 2022 17:01:36 +0000 Subject: [PATCH] Proto: Scoru: fix encoding when reading reveal_hash --- src/proto_alpha/lib_protocol/sc_rollup_wasm.ml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/proto_alpha/lib_protocol/sc_rollup_wasm.ml b/src/proto_alpha/lib_protocol/sc_rollup_wasm.ml index 3eaf256a2dba..27edb05f805b 100644 --- a/src/proto_alpha/lib_protocol/sc_rollup_wasm.ml +++ b/src/proto_alpha/lib_protocol/sc_rollup_wasm.ml @@ -237,8 +237,9 @@ module V2_0_0 = struct | Input_required -> Waiting_for_input_message | Reveal_required (Wasm_2_0_0.Reveal_raw_data hash) -> ( match - Reveal_hash.of_bytes_opt - (Bytes.of_string (Wasm_2_0_0.reveal_hash_to_string hash)) + Data_encoding.Binary.of_string_opt + Reveal_hash.encoding + (Wasm_2_0_0.reveal_hash_to_string hash) with | Some hash -> Waiting_for_reveal (Reveal_raw_data hash) | None -> -- GitLab