tweag/cooked-validators

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

Closed this issue · 1 comments

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?

This was fixed as we transitioned to V2.