2

I've just checked out the latest release of the plutus-apps repository and ensured to copy the respective cabal.project dependencies (including their commit hashes). But I get a weird error, I didn't receive running it with the older version.

src/Contract/MyPolicy.hs:44:43: error:
    • Not in scope: ‘Scripts.wrapMintingPolicy’
      Module ‘Ledger.Typed.Scripts’ does not export ‘wrapMintingPolicy’.
    • In the Template Haskell quotation
        [|| \ oref' tn'
              -> Scripts.wrapMintingPolicy $ mkMyPolicy oref' tn' ||]
      In the typed splice:
        $$(PlutusTx.compile
             [|| \ oref' tn'
                   -> Scripts.wrapMintingPolicy $ mkMyPolicy oref' tn' ||])
   |
44 |     $$(PlutusTx.compile [|| \oref' tn' -> Scripts.wrapMintingPolicy $ mkMyPolicy oref' tn' ||])

Usually, the Ledger.Typed.Scripts modules exported the wrapMintingPolicy function. Source 1

cabal.project:

source-repository-package
  type: git
  location: https://github.com/input-output-hk/plutus-apps.git
  tag: v1.0.0-alpha1

...

source-repository-package
  type: git
  location: https://github.com/input-output-hk/plutus
  tag: a56c96598b4b25c9e28215214d25189331087244

1 Answer 1

3

You could try to replace Scripts.wrapMintingPolicy with Scripts.mkUntypedMintingPolicy

...

import Plutus.Script.Utils.V1.Typed.Scripts qualified as Scripts

...
$$(PlutusTx.compile
             [|| \ oref' tn'
                   -> Scripts.mkUntypedMintingPolicy $ mkMyPolicy oref' tn' ||])

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.