diff --git a/rebar.config b/rebar.config index b388e03..d84c9d4 100644 --- a/rebar.config +++ b/rebar.config @@ -1,4 +1,4 @@ {erl_opts, [debug_info]}. {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"}}} ]}. diff --git a/src/aeser_contract_code.erl b/src/aeser_contract_code.erl index dab6b17..0605420 100644 --- a/src/aeser_contract_code.erl +++ b/src/aeser_contract_code.erl @@ -23,8 +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)) end, %% Compiler version