Skip to content

Commit

Permalink
chore(core): update cddl accordingly with IntersectMBO/cardano-ledger…
Browse files Browse the repository at this point in the history
  • Loading branch information
iccicci committed Mar 19, 2024
1 parent 51de9c5 commit 605a844
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/Serialization/Common/ProtocolVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ export class ProtocolVersion {
if (this.#originalBytes) return this.#originalBytes;

// CDDL
// next_major_protocol_version = 9
// next_major_protocol_version = 10
// major_protocol_version = 1..next_major_protocol_version
// protocol_version = (major_protocol_version, uint32)
// protocol_version = [(major_protocol_version, uint32)]
writer.writeStartArray(PROTOCOL_VERSION_ARRAY_SIZE);
writer.writeInt(this.#major);
writer.writeInt(this.#minor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class HardForkInitiationAction {
if (this.#originalBytes) return this.#originalBytes;

// CDDL
// hard_fork_initiation_action = (1, gov_action_id / null, [protocol_version])
// hard_fork_initiation_action = (1, gov_action_id / null, protocol_version)
writer.writeStartArray(EMBEDDED_GROUP_SIZE);
writer.writeInt(GovernanceActionKind.HardForkInitiation);
this.#govActionId ? writer.writeEncodedValue(hexToBytes(this.#govActionId.toCbor())) : writer.writeNull();
Expand Down

0 comments on commit 605a844

Please sign in to comment.