Skip to content

Commit

Permalink
Change default time addition from 5 to 30 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
hrajchert committed Oct 21, 2023
1 parent 7c56dd9 commit f71ec7b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ processBlocklyCode metadata = do
maybeUpdateTemplateContent = case Holes.fromTerm holesContract of
Just (contract :: Extended.Contract) -> Template.updateTemplateContent
currentTime
(Minutes 5.0)
(Minutes 30.0)
(OMap.keys metadata.timeParameterDescriptions)
(Template.getPlaceholderIds contract)
Nothing -> identity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ handleAction metadata Compile = do
over (_analysisState <<< _templateContent)
( Template.updateTemplateContent
currentTime
(Minutes 5.0)
(Minutes 30.0)
(OMap.keys metadata.timeParameterDescriptions)
(getPlaceholderIds contract)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ handleAction metadata Compile = do
over (_analysisState <<< _templateContent)
( updateTemplateContent
currentTime
(Minutes 5.0)
(Minutes 30.0)
(OMap.keys metadata.timeParameterDescriptions)
(getPlaceholderIds contract)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ processMarloweCode metadata text = do
Just contract ->
Template.updateTemplateContent
currentTime
(Minutes 5.0)
(Minutes 30.0)
(OMap.keys metadata.timeParameterDescriptions)
(Template.getPlaceholderIds contract)
void $ H.request _marloweEditorPageSlot unit $ Monaco.SetModelMarkers
Expand Down
2 changes: 1 addition & 1 deletion marlowe-playground-client/src/Simulator/State.purs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ simulationNotStarted initialTime termContract metadata prevTemplateContent =
tc@(TemplateContent { timeContent, valueContent }) =
initializeTemplateContentWithIncreasingTime
initialTime
(Minutes 5.0)
(Minutes 30.0)
(OMap.keys metadata.timeParameterDescriptions)
(getPlaceholderIds termContract)
templateContent = case prevTemplateContent of
Expand Down

0 comments on commit f71ec7b

Please sign in to comment.