From b7b841883f26b989e8563df9e6b869bfd013580a Mon Sep 17 00:00:00 2001 From: Amaury Chamayou Date: Tue, 17 Oct 2023 13:08:34 +0000 Subject: [PATCH] fix --- src/node/rpc/member_frontend.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/node/rpc/member_frontend.h b/src/node/rpc/member_frontend.h index d1443afe738f..066801b05a8c 100644 --- a/src/node/rpc/member_frontend.h +++ b/src/node/rpc/member_frontend.h @@ -302,13 +302,13 @@ namespace ccf "Unexpected: Could not access GovEffects subsytem"); } - js::init_globals(js_context); - js::populate_global_ccf_kv(&txctx, js_context); - js::populate_global_ccf_node(gov_effects.get(), js_context); - js::populate_global_ccf_network(&network, js_context); - js::populate_global_ccf_gov_actions(js_context); + js::init_globals(apply_js_context); + js::populate_global_ccf_kv(&txctx, apply_js_context); + js::populate_global_ccf_node(gov_effects.get(), apply_js_context); + js::populate_global_ccf_network(&network, apply_js_context); + js::populate_global_ccf_gov_actions(apply_js_context); - auto apply_func = js_context.function( + auto apply_func = apply_js_context.function( constitution, "apply", "public:ccf.gov.constitution[0]"); std::vector apply_argv = {