apply naming suggestions by @emiflake

This commit is contained in:
fanghr 2022-04-25 19:37:42 +08:00
parent 3dacc932ca
commit fdbafcce89
No known key found for this signature in database
GPG key ID: 35CD9A71CD5D5870

View file

@ -174,7 +174,7 @@ PlutusTx.makeIsDataIndexed
-- | Parameters for creating Governor scripts.
data Governor = Governor
{ gstORef :: TxOutRef
{ gstOutRef :: TxOutRef
-- ^ Referenced utxo will be spent to mint the GST.
, gstName :: TokenName
-- ^ Name of the GST token.
@ -234,7 +234,7 @@ deriving via (DerivePConstantViaData GovernorRedeemer PGovernorRedeemer) instanc
governorPolicy :: Governor -> ClosedTerm PMintingPolicy
governorPolicy gov =
plam $ \_ ctx' -> P.do
let oref = pconstant gov.gstORef
let oref = pconstant gov.gstOutRef
ownSymbol = pownCurrencySymbol # ctx'
mintValue <- plet $ pownMintValue # ctx'