Skip to content

Commit

Permalink
Make it clear that getFragment corresponds to FRAGMENT.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed Nov 25, 2019
1 parent 8a63879 commit 7a06c5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/jormungandr/src/Cardano/Wallet/Jormungandr/Binary.hs
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,9 @@ getTxWitnessTag = getWord8 >>= \case
other -> fail $ "Invalid witness type: " ++ show other

-- | Decode a fragment (header + contents).
--
-- Corresponds to FRAGMENT in the specification.
--
getFragment :: Get Fragment
getFragment = label "getFragment" $ do
size <- fromIntegral <$> getWord16be
Expand Down

0 comments on commit 7a06c5e

Please sign in to comment.