@@ -13,7 +13,7 @@ import * as ScriptHash from "./ScriptHash.js"
1313import * as TransactionHash from "./TransactionHash.js"
1414import * as TransactionIndex from "./TransactionIndex.js"
1515import * 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 */
737737export 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
779779export 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
10341034export 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
10391039export 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