Skip to content

Commit

Permalink
Merge pull request #1606 from itsfarseen/itsfarseen/cardano-dev-walle…
Browse files Browse the repository at this point in the history
…t-001

Changes for Cardano Dev Wallet
  • Loading branch information
klntsky authored Apr 16, 2024
2 parents 1cf4c18 + 16b4d69 commit 09ff8e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/ByUrl.purs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import Contract.Config
, testnetNamiConfig
, testnetNuFiConfig
)
import Contract.Log (logInfo')
import Contract.Monad (Contract)
import Contract.Test.E2E (E2EConfigName, E2ETestName, addLinks, route)
import Ctl.Examples.AdditionalUtxos as AdditionalUtxos
Expand Down Expand Up @@ -162,6 +163,7 @@ wallets = Map.fromFoldable
, "lode" /\ testnetLodeConfig /\ Nothing
, "nufi" /\ testnetNuFiConfig /\ Nothing
, "lace" /\ testnetLaceConfig /\ Nothing
, "nami-mainnet" /\ mainnetNamiConfig /\ Nothing
, "nami-mock" /\ testnetNamiConfig /\ Just MockNami
, "gero-mock" /\ testnetGeroConfig /\ Just MockGero
, "flint-mock" /\ testnetFlintConfig /\ Just MockFlint
Expand Down Expand Up @@ -195,7 +197,7 @@ mkBlockfrostPreprodConfig apiKey =
}

examples :: Map E2ETestName (Contract Unit)
examples = Map.fromFoldable
examples = addSuccessLog <$> Map.fromFoldable
[ "AdditionalUtxos" /\ AdditionalUtxos.contract false
, "AlwaysMints" /\ AlwaysMints.contract
, "NativeScriptMints" /\ NativeScriptMints.contract
Expand Down Expand Up @@ -227,3 +229,6 @@ examples = Map.fromFoldable
, "ChangeGeneration1-3" /\
ChangeGeneration.checkChangeOutputsDistribution 1 3 7
]

addSuccessLog :: Contract Unit -> Contract Unit
addSuccessLog contract = contract *> logInfo' "[CTL TEST SUCCESS]"

0 comments on commit 09ff8e8

Please sign in to comment.