Skip to main content
3 votes
Accepted

Empty TokenName Literal Overloading in Week05 Homework2

After digging into Plutus source, I think I've found why tn == "" crashes at runtime. The problem might be that the instance of TokenName IsString doesn't use the INLINABLE pragma in the ...
kindofdev's user avatar
  • 1,304
2 votes

Onchain validation fails for hard-coded pkh

This was answered in PPP Q&A, the issue was the string literals in Plutus Core code. Instead, one has to use variables {-# INLINABLE mkPolicy #-} mkPolicy :: PaymentPubKeyHash -> () -> ...
DaveStrider's user avatar
1 vote
Accepted

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

I've reproduced exactly the same scenario in the tests (homework 1) over the playground with your code and it works as expected: first attempt mints and second one fails because deadline. Most ...
kindofdev's user avatar
  • 1,304
1 vote

NFT minting using unique base64 encoded asset as input

Creating an NFT using an tx hash (unspent) is exactly what the state machine thread token does. You can see how by looking at the plutus source code for state machine below. You can then use a ...
lley154's user avatar
  • 297
1 vote

NFT minting using unique base64 encoded asset as input

This isn't an answer, because I was wondering as well how to do the following, which may or may not be the same thing as you're asking how to do: How do you prevent the same item (hash of a digitized ...
marcel_g's user avatar
  • 239
1 vote

NFT minting using unique base64 encoded asset as input

By input, I assume you mean TokenName or CurrencySymbol. CurrencySymbol is the hash of your script, so you cannot act on it. Having a particular TokenName does not solve the problem because the rules ...
fyusuf-a's user avatar
  • 165

Only top scored, non community-wiki answers of a minimum length are eligible