Skip to content

Commit

Permalink
Add constraint on crypto to IsShelleyBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
geo2a committed Feb 12, 2025
1 parent 8029d4a commit 23a10f4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!--
A new scriv changelog fragment.
Uncomment the section that is right (remove the HTML comment wrapper).
-->

<!--
### Patch
- A bullet item for the Patch category.
-->
<!--
### Non-Breaking
- Add constraint an explicit on crypto to the `IsShelleyBlock` class
-->
<!--
### Breaking
- A bullet item for the Breaking category.
-->
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ mkShelleyBlock raw = ShelleyBlock {
class
( ShelleyCompatible (BlockProtocol blk) (ShelleyBlockLedgerEra blk)
, blk ~ ShelleyBlock (BlockProtocol blk) (ShelleyBlockLedgerEra blk)
, ProtoCrypto (BlockProtocol blk) ~ EraCrypto (ShelleyBlockLedgerEra blk)
) => IsShelleyBlock blk

instance ( proto ~ BlockProtocol (ShelleyBlock proto era)
Expand Down

0 comments on commit 23a10f4

Please # to comment.