tweag / cooked-validators

MIT License
39 stars 11 forks source link

Can't pay freshly minted `quickValue`s / can't work with Plutus V1 minting policies (?) #351

Closed carlhammann closed 3 months ago

carlhammann commented 1 year ago

I'm expecting the following to succeed:

validateTxSkel
  txSkelTemplate
    { txSkelMints =
        txSkelMintsFromList
          [(quickCurrencyPolicy, NoMintsRedeemer, "SomeTokenName", 123)],
      txSkelOuts = [paysPK alicePkh (quickValue "SomeTokenName" 123)],
      txSkelSigners = [wallet 1],
      txSkelOpts = def {txOptEnsureMinAda = True}
    }

However, this doesn't work, and fails with an error complaining that wallet 1 hasn't got enough money. Strangely, it works when I use another Plutus V2 minting policy. The quickCurrencyPolicy is currently implemented as a Plutus V1 script. Maybe the currency symbol is computed differently between V1 and V2?

mmontin commented 3 months ago

This was fixed as we transitioned to V2.