Skip to content

Commit 014b198

Browse files
committed
fix: correct Constituion typo in GovernanceAction
1 parent ebe77e9 commit 014b198

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

packages/evolution/src/GovernanceAction.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import * as ScriptHash from "./ScriptHash.js"
1313
import * as TransactionHash from "./TransactionHash.js"
1414
import * as TransactionIndex from "./TransactionIndex.js"
1515
import * as Coin from "./Coin.js"
16-
import * as Constituion from "./Constitution.js"
16+
import * as Constitution from "./Constitution.js"
1717

1818
/**
1919
* Helper for array equality using element-by-element comparison.
@@ -736,7 +736,7 @@ export const UpdateCommitteeActionFromCDDL = Schema.transformOrFail(
736736
*/
737737
export class NewConstitutionAction extends Schema.TaggedClass<NewConstitutionAction>()("NewConstitutionAction", {
738738
govActionId: Schema.NullOr(GovActionId), // gov_action_id / nil
739-
constitution: Constituion.Constitution // constitution as CBOR
739+
constitution: Constitution.Constitution // constitution as CBOR
740740
}) {
741741
toJSON() {
742742
return {
@@ -779,7 +779,7 @@ export class NewConstitutionAction extends Schema.TaggedClass<NewConstitutionAct
779779
export const NewConstitutionActionCDDL = Schema.Tuple(
780780
Schema.Literal(5n), // action type
781781
Schema.NullOr(GovActionIdCDDL), // gov_action_id / nil
782-
Constituion.CDDLSchema // constitution as CBOR
782+
Constitution.CDDLSchema // constitution as CBOR
783783
)
784784

785785
/**
@@ -798,7 +798,7 @@ export const NewConstitutionActionFromCDDL = Schema.transformOrFail(
798798
const govActionId = action.govActionId
799799
? yield* ParseResult.encode(GovActionIdFromCDDL)(action.govActionId)
800800
: null
801-
const constitution = yield* ParseResult.encode(Constituion.FromCDDL)(action.constitution)
801+
const constitution = yield* ParseResult.encode(Constitution.FromCDDL)(action.constitution)
802802

803803
// Return as CBOR tuple
804804
return [5n, govActionId, constitution] as const
@@ -807,7 +807,7 @@ export const NewConstitutionActionFromCDDL = Schema.transformOrFail(
807807
Eff.gen(function* () {
808808
const [, govActionIdCDDL, constitutionCDDL] = cddl
809809
const govActionId = govActionIdCDDL ? yield* ParseResult.decode(GovActionIdFromCDDL)(govActionIdCDDL) : null
810-
const constitution = yield* ParseResult.decode(Constituion.FromCDDL)(constitutionCDDL)
810+
const constitution = yield* ParseResult.decode(Constitution.FromCDDL)(constitutionCDDL)
811811

812812
return new NewConstitutionAction({
813813
govActionId,
@@ -1033,7 +1033,7 @@ export const updateCommitteeArbitrary: FastCheck.Arbitrary<UpdateCommitteeAction
10331033

10341034
export const newConstitutionArbitrary: FastCheck.Arbitrary<NewConstitutionAction> = FastCheck.tuple(
10351035
FastCheck.option(govActionIdArbitrary, { nil: null }),
1036-
Constituion.arbitrary
1036+
Constitution.arbitrary
10371037
).map(([govActionId, constitution]) => new NewConstitutionAction({ govActionId, constitution }))
10381038

10391039
export const arbitrary: FastCheck.Arbitrary<GovernanceAction> = FastCheck.oneof(
@@ -1100,7 +1100,7 @@ export const match = <R>(
11001100
membersToAdd: ReadonlyMap<typeof CommitteeColdCredential.CommitteeColdCredential.Credential.Type, EpochNo.EpochNo>,
11011101
threshold: UnitInterval.UnitInterval
11021102
) => R
1103-
NewConstitutionAction: (govActionId: GovActionId | null, constitution: Constituion.Constitution) => R
1103+
NewConstitutionAction: (govActionId: GovActionId | null, constitution: Constitution.Constitution) => R
11041104
InfoAction: () => R
11051105
}
11061106
): R => {

0 commit comments

Comments
 (0)