Update to use latest enacl with new API #28

Merged
zxq9 merged 2 commits from use-latest-enacl-api into master 2021-11-02 17:40:45 +09:00
Showing only changes of commit 27bb4331aa - Show all commits

View File

@ -23,8 +23,7 @@ serialize(CodeMap = #{ byte_code := ByteCode
SourceHash = case CodeMap of SourceHash = case CodeMap of
#{ source_hash := SHash } -> SHash; #{ source_hash := SHash } -> SHash;
#{ contract_source := SrcStr } -> #{ contract_source := SrcStr } ->
SHash = enacl:generichash(32, list_to_binary(SrcStr)), enacl:generichash(32, list_to_binary(SrcStr))
SHash
end, end,
%% Compiler version %% Compiler version