Cleanup whitespace, bad typespec, and remaining enacl reference #509

Merged
zxq9 merged 1 commits from minor_fixing_up into master 2019-01-28 19:24:30 +09:00
2 changed files with 63 additions and 64 deletions

View File

@ -38,18 +38,18 @@
version() ->
?COMPILER_VERSION.
-spec file(string()) -> map().
-spec file(string()) -> {ok, map()} | {error, binary()}.
file(Filename) ->
file(Filename, []).
-spec file(string(), options()) -> map().
-spec file(string(), options()) -> {ok, map()} | {error, binary()}.
file(File, Options) ->
case read_contract(File, Options) of
{ok, Bin} -> from_string(Bin, Options);
{error, Error} -> {error, {File, Error}}
end.
-spec from_string(binary() | string(), options()) -> map().
-spec from_string(binary() | string(), options()) -> {ok, map()} | {error, binary()}.
from_string(ContractBin, Options) when is_binary(ContractBin) ->
from_string(binary_to_list(ContractBin), Options);
from_string(ContractString, Options) ->

View File

@ -5,7 +5,6 @@
{applications,
[kernel,
stdlib,
enacl,
syntax_tools,
aebytecode
]},