File tree 2 files changed +4
-7
lines changed
src/programmable-tokens/lib/SmartTokens
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -119,9 +119,6 @@ mkProgrammableLogicMinting = plam $ \(pfromData -> programmableLogicBase) mintin
119
119
# plam (pfstBuiltin # )
120
120
# pto (pfromData ptxInfo'wdrl)
121
121
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.
125
122
-- All transfers of the token will be validated by either the transferLogicScript or the issuerLogicScript.
126
123
-- Registration can only occurr once per instance of this minting policy since the directory contracts do not permit duplicate
127
124
-- entries.
@@ -144,7 +141,7 @@ mkProgrammableLogicMinting = plam $ \(pfromData -> programmableLogicBase) mintin
144
141
]
145
142
)
146
143
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.
148
145
psingleMintWithCredential :: Term (s :: S ) (PAsData PRedeemer :--> AssocMap. PMap 'AssocMap.Unsorted PScriptPurpose PRedeemer :--> PBool )
149
146
psingleMintWithCredential =
150
147
phoistAcyclic $ plam $ \ rdmr redeemers ->
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ PlutusTx.makeIsDataIndexed ''DirectoryNodeAction
49
49
50
50
data PDirectoryNodeAction (s :: S )
51
51
= 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 ) }
53
53
deriving stock (Generic )
54
54
deriving anyclass (SOP.Generic , PIsData , PEq )
55
55
deriving (PlutusType ) via DeriveAsDataStruct PDirectoryNodeAction
@@ -77,6 +77,6 @@ mkDirectoryNodeMP = plam $ \initUTxO issuanceCborHexCS ctx -> P.do
77
77
passert " Init must consume TxOutRef" $
78
78
phasUTxO # pfromData initUTxO # pfromData ptxInfo'inputs
79
79
pInit common
80
- PInsert action hashedParam -> P. do
80
+ PInsert action pmintingLogicCred -> P. do
81
81
pkToInsert <- plet action
82
- pInsert issuanceCborHexCS common # pfromData pkToInsert # hashedParam
82
+ pInsert issuanceCborHexCS common # pfromData pkToInsert # pmintingLogicCred
You can’t perform that action at this time.
0 commit comments