We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d71b6a commit 3412aefCopy full SHA for 3412aef
libs/cardano-ledger-core/src/Cardano/Ledger/DRep.hs
@@ -186,9 +186,8 @@ instance ToJSON DRepState where
186
object $
187
[ "expiry" .= toJSON drepExpiry
188
, "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
+ -- Since the corresponding `FromJSON` instance ignores the `delegators` field,
+ -- we omit it from the `ToJSON` instance, ensuring that round-tripping behaves as expected.
192
]
193
++ ["anchor" .= toJSON anchor | SJust anchor <- [drepAnchor]]
194
0 commit comments