aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/Multigroup.ml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/kernel/Multigroup.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/kernel/Multigroup.ml b/lib/kernel/Multigroup.ml
index 5a3390d..eaef8c3 100644
--- a/lib/kernel/Multigroup.ml
+++ b/lib/kernel/Multigroup.ml
@@ -31,12 +31,12 @@ module Make (S : Abstract.Storage.STORAGE) = struct
let admit name h =
let open Utilities.Result in
let address entry = Concepts.Hash.hash_of_blob (encode entry) in
- match EphemeralRelation.stored h with
- | Some (evaluator, code, _) ->
+ match Program.image h with
+ | Some {evaluator; source; _} ->
let* description = Protocols.Relation.heading h in
Ok
(fun tx ->
- let* record = E.store tx ~name ~evaluator ~code description in
+ let* record = E.store tx ~name ~evaluator ~source description in
Ok (address (Ephemeral record)) )
| None ->
let* description, tuples = Protocols.Relation.read h in