Update to use latest enacl with new API

This commit is contained in:
Sean Hinde
2021-11-01 18:37:12 +01:00
parent 58e34ae7b5
commit 9b36c771c7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ serialize(CodeMap = #{ byte_code := ByteCode
SourceHash = case CodeMap of
#{ source_hash := SHash } -> SHash;
#{ contract_source := SrcStr } ->
{ok, SHash} = enacl:generichash(32, list_to_binary(SrcStr)),
SHash = enacl:generichash(32, list_to_binary(SrcStr)),
SHash
end,