diff --git a/src/gd_v_devman.erl b/src/gd_v_devman.erl index a5dad28..3c4d1a6 100644 --- a/src/gd_v_devman.erl +++ b/src/gd_v_devman.erl @@ -837,7 +837,8 @@ open_hash3(State, Address, Source) -> % TODO: Compile on load and verify the deployed hash for validity. Options = sophia_options(), case so_compiler:from_string(Source, Options) of - {ok, Build = #{aaci := AACI}} -> + {ok, Build} -> + AACI = hz:prepare_aaci(Build), {Defs = #{functions := Funs}, ConIfaces} = find_main(AACI), Callable = maps:remove("init", Funs), FunDefs = {maps:put(functions, Callable, Defs), ConIfaces},