Update to use latest enacl with new API
This commit is contained in:
parent
58e34ae7b5
commit
9b36c771c7
@ -1,4 +1,4 @@
|
|||||||
{erl_opts, [debug_info]}.
|
{erl_opts, [debug_info]}.
|
||||||
{deps, [ {base58, {git, "https://github.com/aeternity/erl-base58.git", {ref, "60a3356"}}}
|
{deps, [ {base58, {git, "https://github.com/aeternity/erl-base58.git", {ref, "60a3356"}}}
|
||||||
, {enacl, {git, "https://github.com/aeternity/enacl.git", {ref, "26180f4"}}}
|
, {enacl, {git, "https://github.com/aeternity/enacl.git", {ref, "793ddb5"}}}
|
||||||
]}.
|
]}.
|
||||||
|
@ -23,7 +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 } ->
|
||||||
{ok, SHash} = enacl:generichash(32, list_to_binary(SrcStr)),
|
SHash = enacl:generichash(32, list_to_binary(SrcStr)),
|
||||||
SHash
|
SHash
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user