Stop trying to pull the AACI from the build directly
This commit is contained in:
parent
f92c5fbde0
commit
5ebb532b86
@ -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},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user