File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ import Data.Map qualified as Map
5757import  Data.Maybe  (fromJust )
5858import  Data.Singletons  (sing )
5959import  Data.Spine  (HasSpine  (.. ))
60- import  Debug.Trace  (traceShowId )
6160import  Plutarch  (Config  (.. ), (#) )
6261import  Plutarch.Evaluate  (evalTerm )
6362import  Plutarch.Lift  (pconstant , plift )
@@ -265,11 +264,11 @@ process (MkCEMAction params transition) ec = case ec of
265264--  -----------------------------------------------------------------------------
266265
267266data  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
275274resolveTx  :: 
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ import Cardano.CEM.Monads (
4545 )
4646import  Cardano.CEM.Monads.CLB  (ClbRunner , execOnIsolatedClb )
4747import  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}
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments