Skip to content

Commit

Permalink
Fix mistaken use of dollar sign in cddl files
Browse files Browse the repository at this point in the history
`cddl generate` doesn't generate any values when the type is prefixed
with `$`
  • Loading branch information
teodanciu committed Sep 11, 2023
1 parent 8753f69 commit b9221a7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion eras/alonzo/test-suite/cddl-files/alonzo.cddl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ transaction_body =
, ? 15 : network_id ; New
}

required_signers = set<$addr_keyhash>
required_signers = set<addr_keyhash>

transaction_input = [ transaction_id : $hash32
, index : uint
Expand Down
2 changes: 1 addition & 1 deletion eras/babbage/test-suite/cddl-files/babbage.cddl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ transaction_body =
, ? 18 : set<transaction_input> ; reference inputs; New
}

required_signers = set<$addr_keyhash>
required_signers = set<addr_keyhash>

transaction_input = [ transaction_id : $hash32
, index : uint
Expand Down
8 changes: 4 additions & 4 deletions eras/conway/test-suite/cddl-files/conway.cddl
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ parameter_change_action = (0, gov_action_id / null, protocol_param_update)

hard_fork_initiation_action = (1, gov_action_id / null, [protocol_version])

treasury_withdrawals_action = (2, { $reward_account => coin })
treasury_withdrawals_action = (2, { reward_account => coin })

no_confidence = (3, gov_action_id / null)

new_committee = (4, gov_action_id / null, set<$committee_cold_credential>, committee)
new_committee = (4, gov_action_id / null, set<committee_cold_credential>, committee)

new_constitution = (5, gov_action_id / null, constitution)

committee = [{ $committee_cold_credential => epoch }, unit_interval]
committee = [{ committee_cold_credential => epoch }, unit_interval]

constitution =
[ anchor
Expand Down Expand Up @@ -146,7 +146,7 @@ gov_action_id =
, gov_action_index : uint
]

required_signers = nonempty_set<$addr_keyhash>
required_signers = nonempty_set<addr_keyhash>

transaction_input = [ transaction_id : $hash32
, index : uint
Expand Down

0 comments on commit b9221a7

Please sign in to comment.