diff --git a/src/proto_alpha/lib_protocol/sc_rollup_wasm.ml b/src/proto_alpha/lib_protocol/sc_rollup_wasm.ml index 3eaf256a2dbaad746f278a3e70231d7eed92dbfe..27edb05f805b6808f96a82170f05f4707a4dcb56 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 ->