iface #31

Merged
zxq9 merged 27 commits from iface into master 2025-12-30 22:32:33 +09:00
Showing only changes of commit 5ebb532b86 - Show all commits

View File

@ -837,7 +837,8 @@ open_hash3(State, Address, Source) ->
% TODO: Compile on load and verify the deployed hash for validity. % TODO: Compile on load and verify the deployed hash for validity.
Options = sophia_options(), Options = sophia_options(),
case so_compiler:from_string(Source, Options) of 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), {Defs = #{functions := Funs}, ConIfaces} = find_main(AACI),
Callable = maps:remove("init", Funs), Callable = maps:remove("init", Funs),
FunDefs = {maps:put(functions, Callable, Defs), ConIfaces}, FunDefs = {maps:put(functions, Callable, Defs), ConIfaces},