Remove zx lib calls

This commit is contained in:
2025-10-14 16:40:42 +09:00
parent 39b92996aa
commit 4c09490f8a
3 changed files with 44 additions and 8 deletions
+4 -3
View File
@@ -1143,9 +1143,10 @@ assemble_calldata2(OwnerID, Nonce, Amount, TTL, Gas, GasPrice, Compiled, CallDat
read_aci(Path) ->
case file:read_file(Path) of
{ok, Bin} ->
case zx_lib:b_to_ts(Bin) of
error -> {error, bad_aci};
OK -> OK
try
{ok, binary_to_term(Bin, [safe])}
catch
error:badarg -> {error, bad_aci}
end;
Error ->
Error