Skip to content

Commit

Permalink
PLT-7417: Sorting role list
Browse files Browse the repository at this point in the history
  • Loading branch information
yveshauser committed Sep 19, 2023
1 parent fb31909 commit a298397
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Component/CreateContract.purs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import Control.Promise as Promise
import Data.Argonaut (decodeJson, encodeJson, jsonParser, parseJson, stringifyWithIndent)
import Data.Array as Array
import Data.Array.NonEmpty (NonEmptyArray)
import Data.Array.NonEmpty as NonEmptyArray
import Data.Bifunctor (lmap)
import Data.BigInt.Argonaut (BigInt)
import Data.BigInt.Argonaut as BigInt
Expand Down Expand Up @@ -165,7 +166,7 @@ mkContractFormSpec (possibleInitialContract /\ (AutoRun initialAutoRun)) = FormS
contract /\ tags /\ autoRun

mkRolesConfigForm :: NonEmptyArray String -> CardanoMultiplatformLib.Lib -> StatelessBootstrapFormSpec Effect Query RolesConfig
mkRolesConfigForm roleNames cardanoMultiplatformLib = FormSpecBuilder.evalBuilder Nothing $ Mint <<< Map.fromFoldable <$> for roleNames \roleName -> ado
mkRolesConfigForm roleNames cardanoMultiplatformLib = FormSpecBuilder.evalBuilder Nothing $ Mint <<< Map.fromFoldable <$> for (NonEmptyArray.sort roleNames) \roleName -> ado
address <- StatelessFormSpecBuilders.textInput
{ missingError: "Please provide an address for a role token"
, helpText: Just $ DOOM.div_
Expand Down

0 comments on commit a298397

Please sign in to comment.