Skip to content

Commit

Permalink
Defaulting Stage to SingleStage
Browse files Browse the repository at this point in the history
  • Loading branch information
uhbif19 committed Jun 10, 2024
1 parent c5c186a commit be137b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Cardano/CEM.hs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ class CEMScriptTypes script where
-- | which is stored immutable in script Datum as well.
type Stage script

type Stage script = SingleStage

-- | `State` is changing part of script Datum.
-- | It is in
type State script = params | params -> script
Expand Down
1 change: 0 additions & 1 deletion src/Cardano/CEM/Examples/Voting.hs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ PlutusTx.unstableMakeIsData ''VoteValue
PlutusTx.unstableMakeIsData ''JuryPolicy

instance CEMScriptTypes SimpleVoting where
type Stage SimpleVoting = SingleStage
type Params SimpleVoting = SimpleVotingParams
type State SimpleVoting = SimpleVotingState
type Transition SimpleVoting = SimpleVotingTransition
Expand Down

0 comments on commit be137b7

Please sign in to comment.