Skip to content

Commit

Permalink
Add sharing for GovActionState
Browse files Browse the repository at this point in the history
  • Loading branch information
lehins committed Jan 30, 2025
1 parent 3a552c1 commit f51ecdc
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,15 @@ import Cardano.Ledger.Binary (
ToCBOR (toCBOR),
decNoShareCBOR,
decodeEnumBounded,
decodeMap,
decodeMapByKey,
decodeNullStrictMaybe,
decodeRecordNamed,
encodeEnum,
encodeListLen,
encodeNullStrictMaybe,
encodeWord8,
interns,
invalidKey,
)
import Cardano.Ledger.Binary.Coders (
Expand Down Expand Up @@ -291,13 +293,13 @@ instance EraPParams era => DecShareCBOR (GovActionState era) where
, Interns (Credential 'DRepRole)
, Interns (Credential 'HotCommitteeRole)
)
decShareCBOR _ =
decShareCBOR (cs, ks, cd, ch) =
decode $
RecD GovActionState
<! From
<! From
<! From
<! From
<! D (decodeMap (interns ch <$> decCBOR) decCBOR)
<! D (decodeMap (interns cd <$> decCBOR) decCBOR)
<! D (decodeMap (interns ks <$> decCBOR) decCBOR)
<! From
<! From
<! From
Expand Down

0 comments on commit f51ecdc

Please sign in to comment.