From 70ce3506cdb6f729748eb8a1c251d6eb46de3fe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Kr=C3=BCger?= Date: Thu, 23 Jun 2022 13:14:32 +0100 Subject: [PATCH] SCORU: WASM: Use boot sector in initial state --- src/proto_alpha/lib_protocol/sc_rollup_wasm.ml | 5 ++++- 1 file changed, 4 insertions(+), 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 eb7888be9ccd..bf20e218d342 100644 --- a/src/proto_alpha/lib_protocol/sc_rollup_wasm.ml +++ b/src/proto_alpha/lib_protocol/sc_rollup_wasm.ml @@ -177,10 +177,13 @@ module V2_0_0 = struct open Monad - let initial_state ctxt _boot_sector = + let initial_state ctxt boot_sector = let open Lwt_syntax in let state = Tree.empty ctxt in let* state = Tree.add state ["wasm-version"] (Bytes.of_string "2.0.0") in + let* state = + Tree.add state ["boot-sector"] (Bytes.of_string boot_sector) + in Lwt.return state let state_hash state = -- GitLab