Skip to content

Commit 3412aef

Browse files
aniketdteodanciu
andcommitted
Update comment about omitting delegators field.
Co-authored-by: teodanciu <[email protected]>
1 parent 9d71b6a commit 3412aef

File tree

1 file changed

+2
-3
lines changed
  • libs/cardano-ledger-core/src/Cardano/Ledger

1 file changed

+2
-3
lines changed

libs/cardano-ledger-core/src/Cardano/Ledger/DRep.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,8 @@ instance ToJSON DRepState where
186186
object $
187187
[ "expiry" .= toJSON drepExpiry
188188
, "deposit" .= toJSON drepDeposit
189-
-- Since the corresponding `FromJSON` instance ignores this field, we omit it from
190-
-- the `ToJSON` instance as well. Round-tripping is therefore as expected.
191-
-- , "delegators" .= toJSON drepDelegs
189+
-- Since the corresponding `FromJSON` instance ignores the `delegators` field,
190+
-- we omit it from the `ToJSON` instance, ensuring that round-tripping behaves as expected.
192191
]
193192
++ ["anchor" .= toJSON anchor | SJust anchor <- [drepAnchor]]
194193

0 commit comments

Comments
 (0)