Hot answers tagged

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 -> () -> ...
user avatar
2 votes

Need Help finding error in my endpoint code

It appears you are trying to assign a type of Promise to a type of Contract contract :: AsContractError e => Contract () Schema e () contract = storeFront Why not try this, instead: contract :: ...
user avatar
  • 686
2 votes

StateMachine validation failing

My StateMachine does not need any additional checks with the smCheck so I completely removed the field. The compiler complained only a little bit and gave me a warning that I had an uninitialized ...
user avatar
2 votes
Accepted

StateMachine validation failing

The problem is most probably caused by an omitted check function. Even if you do not use it, you have to specify it. Example: check :: FreelanceContract -> FContractDatum -> FContractRedeemer -&...
user avatar
  • 686
1 vote

Chain index stop syncing after slot 62510369, maybe related with new Babbage era

Similar to cardano-db-sync references you found, every repo that is interacting with node has to go through updates to be able to read blocks post Vasil H/F. Here also, some report about the chain ...
user avatar
  • 1,127
1 vote
Accepted

Problen when sysncing node on mainnet

Summary of comments: System with 8GB of RAM and no swap space defined, so the process would run out of memory and terminate. Swap space will be set up (10GB) and things should be ok.
user avatar
1 vote
Accepted

Non-INLINABLE functions Error

This was a problem with the Haskell compiler interfering with the code before it reached the Plutus compiler. The changes made in the Haskell compiler made it impossible to compile in Plutus. This ...
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 ...
user avatar
  • 1,226
1 vote

Error evaluating Simulation in playground

This is a minutxo failure. Likely wallet 1 doesn't have enough Lovelace in the initial genesis for holding the minted NFT. Try assigning at least 2000000 (2 Ada) to that wallet.
user avatar
1 vote

Vim errors when setting up Plutus Environment

There are a few things. First of why is there a /home/vagrant/.vimrc in the first place? Second why does it contain ^M (that's effectively \r), in there? dos2unix on /home/vagrant/.vimrc should fix ...
user avatar
  • 359

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