Merge pull request #18 from aeternity/minor_fixing_up

Cleanup whitespace, bad typespec, and remaining enacl reference
This commit is contained in:
Hans Svensson 2019-01-28 11:24:29 +01:00 committed by GitHub
commit 9026e1fe6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
]},