dcSpark/cddl-codegen

@name doesn't work for single fixed element group choice

rooooooooob opened this issue · 0 comments

d_rep = [
  ; @name key
  0, ed25519_key_hash //
  ; @name script
  1, script_hash //
  ; @name always_abstain
  2 //
  ; @name always_no_confidence
  3
]

The first two are generated as DRep::Key and DRep::Script but the last two don't get named properly and end up as DRep::I2 and DRep::I3.