Skip to content

Commit 8ce26d6

Browse files
author
euonymos
committed
chore: fix imports and comments
1 parent 7e5058f commit 8ce26d6

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/Cardano/CEM/OffChain.hs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ import Data.Map qualified as Map
5757
import Data.Maybe (fromJust)
5858
import Data.Singletons (sing)
5959
import Data.Spine (HasSpine (..))
60-
import Debug.Trace (traceShowId)
6160
import Plutarch (Config (..), (#))
6261
import Plutarch.Evaluate (evalTerm)
6362
import Plutarch.Lift (pconstant, plift)
@@ -265,11 +264,11 @@ process (MkCEMAction params transition) ec = case ec of
265264
-- -----------------------------------------------------------------------------
266265

267266
data TxResolutionError
268-
= CEMScriptTxInResolutionError
269-
| -- FIXME: record transition and action involved
267+
= NoSignerError
268+
| CEMScriptTxInResolutionError
269+
| -- TODO: record transition and action involved
270270
PerTransitionErrors [TransitionError]
271-
| -- FIXME: this is weird
272-
UnhandledSubmittingError TxSubmittingError
271+
| UnhandledSubmittingError TxSubmittingError
273272
deriving stock (Show)
274273

275274
resolveTx ::

src/Cardano/CEM/Testing/StateMachine.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import Cardano.CEM.Monads (
4545
)
4646
import Cardano.CEM.Monads.CLB (ClbRunner, execOnIsolatedClb)
4747
import Cardano.CEM.OffChain (
48-
TxResolutionError (CEMScriptTxInResolutionError, UnhandledSubmittingError),
48+
TxResolutionError (NoSignerError, UnhandledSubmittingError),
4949
compileActionConstraints,
5050
construct,
5151
process,
@@ -396,9 +396,9 @@ instance
396396
let
397397
(cs, _) = applyMutation mutation cs'
398398
mbSignerPKH = getMbMainSigner cs
399-
-- \| FIXME: can we delegate handling Nothing case to process/construct?
399+
-- \| TODO: can we delegate handling Nothing case to process/construct?
400400
specSigner <- case mbSignerPKH of
401-
Nothing -> ExceptT $ pure $ Left CEMScriptTxInResolutionError -- FIXME:
401+
Nothing -> ExceptT $ pure $ Left NoSignerError
402402
Just signerPKH -> pure $ findSkForPKH (actors $ config dappParams) signerPKH
403403
resolutions <- mapM (process cemAction) cs
404404
let resolvedTx = (construct resolutions) {signer = specSigner}

0 commit comments

Comments
 (0)