Merge branch 'master' into bin_sig
This commit is contained in:
+4
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user