Skip to content

Commit

Permalink
Fix blake2b_224 in plutus-tx (#5716)
Browse files Browse the repository at this point in the history
* Fix blake2b_224 in plutus-tx

* Forgot to add changelog
  • Loading branch information
kwxm authored Jan 12, 2024
1 parent ef18f58 commit 2fea70c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions plutus-tx/changelog.d/20240112_125800_kenneth.mackenzie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Fixed

- The `blake2b_224` function in the plutus-tx plugin was erroneously
calling `blake2b_256` instead. Now fixed.

2 changes: 1 addition & 1 deletion plutus-tx/src/PlutusTx/Builtins.hs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ sha3_256 = BI.sha3_256
{-# INLINABLE blake2b_224 #-}
-- | The BLAKE2B-224 hash of a 'ByteString'
blake2b_224 :: BuiltinByteString -> BuiltinByteString
blake2b_224 = BI.blake2b_256
blake2b_224 = BI.blake2b_224

{-# INLINABLE blake2b_256 #-}
-- | The BLAKE2B-256 hash of a 'ByteString'
Expand Down

0 comments on commit 2fea70c

Please sign in to comment.