<p>There are plutus-contract tests, such as <a href="https://github.com/input-output-hk/plutus-apps/blob/next-node/plutus-contract/test/Spec/TxConstraints/MustMint.hs" rel="nofollow noreferrer">MustMint.hs</a>, that demonstrate the use of each minting tx constraint: mustMintCurrencyWithRedeemer, mustMintValueWithRedeemer, mustMintCurrency &amp; mustMintValue. Hope that helps.</p>

CC BY-SA 4.0
2022-10-04T08:56:58.973Z
2022-10-04T08:56:58.973Z
james
<p>My application has a minting script and a validator script that works together. I am using EmulatorTrace to test my application.How do i simulate a minting event in EmulatorTrace?</p>

<minting><unit-test>
Simulate Minting Event In EmulatorTrace
# Simulate Minting Event In EmulatorTrace

(Asked by: username_0 on 2022-10-03)

My application has a minting script and a validator script that works together. I am using EmulatorTrace to test my application.How do i simulate a minting event in EmulatorTrace?

**Tags:** minting, unit-test

---

## 1 answers

### Answer by username_1 on 2022-10-04. Score: 2

There are plutus-contract tests, such as [MustMint.hs](https://github.com/input-output-hk/plutus-apps/blob/next-node/plutus-contract/test/Spec/TxConstraints/MustMint.hs), that demonstrate the use of each minting tx constraint: mustMintCurrencyWithRedeemer, mustMintValueWithRedeemer, mustMintCurrency & mustMintValue. Hope that helps.


---

