Skip to content

Commit

Permalink
remove dead comments
Browse files Browse the repository at this point in the history
  • Loading branch information
colll78 committed Jan 1, 2025
1 parent 9cf2595 commit 84dd26f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
9 changes: 0 additions & 9 deletions src/lib/SmartTokens/Types/PTokenDirectory.hs
Original file line number Diff line number Diff line change
Expand Up @@ -264,15 +264,6 @@ pisInsertedNode = phoistAcyclic $
pmkDirectorySetNode # insertedKey # coveringNext # pdeserializeCredential transferLogicCred_ # pdeserializeCredential issuerLogicCred_
in outputNode #== expectedDirectoryNode

-- TODO (jm): Uncommenting the following line results in an error. This is spdeserializeCredential trange because the check below
-- asserts that the 'key' and 'next' fields of 'outputnode' are equal to what we expect, and the other two
-- fields (transferLogicScript, issuerLogicScript) should also be equal when we construct the 'expectedDirectoryNode'

-- in ptraceInfo (pshow $ pmkBuiltinList [pforgetData expectedDirectoryNode]) $ outputNode #== expectedDirectoryNode

-- -- in pforgetData insertedKey #== pforgetData outputNodeDatumF.key
-- -- #&& pforgetData coveringNext #== pforgetData ptailNextData

pdeserializeCredential :: Term s (PAsData PCredential) -> Term s (PAsData PCredential)
pdeserializeCredential term =
plet (pasConstr # pforgetData term) $ \constrPair ->
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Wst/Offchain/Env.hs
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,12 @@ addTransferEnv :: TransferLogicEnv -> CombinedEnv o d t r era -> CombinedEnv o d
addTransferEnv de env =
env{ceTransfer = Identity de }

withTransfer :: MonadReader (CombinedEnv o d t r era) m => TransferLogicEnv -> ReaderT (CombinedEnv o d Identity r era) m a -> m a
withTransfer :: MonadReader (CombinedEnv o Identity t r era) m => TransferLogicEnv -> ReaderT (CombinedEnv o Identity Identity r era) m a -> m a
withTransfer dir action = do
asks (addTransferEnv dir)
>>= runReaderT action

withTransferFor :: MonadReader (CombinedEnv o d t r era) m => C.PaymentCredential -> C.Hash C.PaymentKey -> ReaderT (CombinedEnv o d Identity r era) m a -> m a
withTransferFor :: MonadReader (CombinedEnv o Identity t r era) m => C.PaymentCredential -> C.Hash C.PaymentKey -> ReaderT (CombinedEnv o Identity Identity r era) m a -> m a
withTransferFor plbBaseCred opPKH = withTransfer $ mkTransferLogicEnv plbBaseCred opPKH

withTransferFromOperator :: (MonadReader (CombinedEnv Identity Identity t r era) m) => ReaderT (CombinedEnv Identity Identity Identity r era) m a -> m a
Expand Down

0 comments on commit 84dd26f

Please sign in to comment.