Questions tagged [week05]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
72 views

Onchain validation fails for hard-coded pkh

When modifying the week5 code in e.g. Signed.hs from mkPolicy pkh () ctx = txSignedBy (scriptContextTxInfo ctx) $ unPaymentPubKeyHash pkh to the hard-coded pkh from Wallet 1, mkPolicy pkh () ctx = ...
user avatar
1 vote
1 answer
99 views

what is "WalletError (ValidationError (ScriptFailure (EvaluationError [\"PT5\"] \"CekEvaluationFailure\")))" when trying in playground?

I have Homework1 of week 5, and it works in the repl (meaning, the test gives the expected result). However, when I try the script in the playground (and remove the test - I don't think that makes a ...
user avatar
  • 172
3 votes
3 answers
110 views

NFT minting using unique base64 encoded asset as input

Regarding the Week05 course material. It is recommended in the lecture on NFT minting policy that rather than rely on a deadline and constraint of 1 token per mint, that a unique input such as a UTxO ...
user avatar
  • 183
3 votes
2 answers
158 views

Empty TokenName Literal Overloading in Week05 Homework2

This doesn't work mkPolicy oref () ctx = traceIfFalse "UTxO not consumed" hasUTxO && traceIfFalse "wrong amount minted" checkMintedAmount ...
user avatar
  • 125