diff --git a/src/resolver.erl b/src/resolver.erl index 266327f..3cf36f0 100644 --- a/src/resolver.erl +++ b/src/resolver.erl @@ -18,7 +18,7 @@ start([ConID]) -> ok = hakuzaru:start(), ok = hz:chain_nodes([{"tsuriai.jp", 4013}]), - {project, [{_, Source}]} = hz:contract_source(ConID), + {ok, Source} = hz:contract_source(ConID), {ok, Built} = so_compiler:from_string(Source, [{aci, json}]), AACI = hz_aaci:prepare(maps:get(aci, Built)), % Dry runs require a caller that is known, and the contract owner is definitely known @@ -34,7 +34,9 @@ start([ConID]) -> R_Type = maps:get(Fun, element(3, AACI)), Sophia = hz:decode_bytearray(Return, {sophia, R_Type}), io:format("~ts~n", [Sophia]), + % TODO: The Erlang decoding is still broken, but won't be shortly. % Erlang = hz:decode_bytearray(Return, {erlang, R_Type}), +% {IPs, Port, Salt, ValidIDs} = Erlang, % ok = tell(info, "Decoded Erlang: ~tp", [Erlang]), zx:silent_stop(); start(Poop) ->