Liqwid-Labs / plutarch-context-builder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`TxId` should be 32 bytes, context validation expects 28

Drop-Table-Users opened this issue · comments

{- | Check if TxId follows the format

 @since 2.1.0
-}
checkTxId :: Builder a => Checker e a
checkTxId =
  checkAt AtTxId $
    contramap (getTxId . bbTxId . unpack) checkByteString

TxId type should be 32 bytes instead of 28 defined in the checkByteString check. Using 32B bytestring results in validation failure (when using checkPhase1 flag)