Skip to content

Commit

Permalink
fix(logic): add return statement for hash errors
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
ccamel and coderabbitai[bot] authored Nov 13, 2023
1 parent 605d0cd commit 9996654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/logic/predicate/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func CryptoDataHash(

result, err := util.Hash(algorithm, decodedData)
if err != nil {
engine.Error(fmt.Errorf("%s: failed to hash data: %w", functor, err))
return engine.Error(fmt.Errorf("%s: failed to hash data: %w", functor, err))
}

return engine.Unify(vm, hash, BytesToList(result), cont, env)
Expand Down

0 comments on commit 9996654

Please sign in to comment.