Skip to content

Commit a863ed2

Browse files
committed
Review comments
1 parent e5e11e6 commit a863ed2

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/programmable-tokens/lib/SmartTokens/Contracts/Issuance.hs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,6 @@ mkProgrammableLogicMinting = plam $ \(pfromData -> programmableLogicBase) mintin
119119
# plam (pfstBuiltin #)
120120
# pto (pfromData ptxInfo'wdrl)
121121
red <- plet pscriptContext'redeemer
122-
-- PMintPToken is used to register a new programmable token in the directory and to mint the programmable token upon registration and
123-
-- in any subsequent transaction.
124-
-- At registration this creates a permanent association between the currency symbol with a transferLogicScript and issuerLogicScript.
125122
-- All transfers of the token will be validated by either the transferLogicScript or the issuerLogicScript.
126123
-- Registration can only occurr once per instance of this minting policy since the directory contracts do not permit duplicate
127124
-- entries.
@@ -144,7 +141,7 @@ mkProgrammableLogicMinting = plam $ \(pfromData -> programmableLogicBase) mintin
144141
]
145142
)
146143

147-
-- | Check that exactly one redeemer with the mintingLogic credential is present in the transaction.
144+
-- | Check that exactly one `PMinting` redeemer with the mintingLogic credential is present in the transaction.
148145
psingleMintWithCredential :: Term (s :: S) (PAsData PRedeemer :--> AssocMap.PMap 'AssocMap.Unsorted PScriptPurpose PRedeemer :--> PBool)
149146
psingleMintWithCredential =
150147
phoistAcyclic $ plam $ \rdmr redeemers ->

src/programmable-tokens/lib/SmartTokens/LinkedList/MintDirectory.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ PlutusTx.makeIsDataIndexed ''DirectoryNodeAction
4949

5050
data PDirectoryNodeAction (s :: S)
5151
= PInit
52-
| PInsert { pkeyToInsert :: Term s (PAsData PByteString), phashedParam :: Term s (PAsData PByteString) }
52+
| PInsert { pkeyToInsert :: Term s (PAsData PByteString), pmintingLogicCred :: Term s (PAsData PByteString) }
5353
deriving stock (Generic)
5454
deriving anyclass (SOP.Generic, PIsData, PEq)
5555
deriving (PlutusType) via DeriveAsDataStruct PDirectoryNodeAction
@@ -77,6 +77,6 @@ mkDirectoryNodeMP = plam $ \initUTxO issuanceCborHexCS ctx -> P.do
7777
passert "Init must consume TxOutRef" $
7878
phasUTxO # pfromData initUTxO # pfromData ptxInfo'inputs
7979
pInit common
80-
PInsert action hashedParam -> P.do
80+
PInsert action pmintingLogicCred -> P.do
8181
pkToInsert <- plet action
82-
pInsert issuanceCborHexCS common # pfromData pkToInsert # hashedParam
82+
pInsert issuanceCborHexCS common # pfromData pkToInsert # pmintingLogicCred

0 commit comments

Comments
 (0)