Hot answers tagged

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 :: ...
Aoaddeola's user avatar
  • 815
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 ...
Isaac Padberg's 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 -&...
Aoaddeola's user avatar
  • 815
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

Error when unpacking snapshot to bootstrap Cardano node by using Mithril

You are probably using a wrong aggregator endpoint. In order to make the restoration work, please use the following endpoints: Cardano preprod network: https://aggregator.release-preprod.api.mithril....
jpraynaud's user avatar
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 ...
RdLrT's user avatar
  • 1,567
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.
MC_Brisbane - JUST Pool's user avatar
1 vote

Cardano-cli error: "Invalid argument `"type":'"

The error states a missing file: matx.raw I sugguest separating the build-raw and calc fee commands. Edit: $slotnumber was not set before use in the first 'build-raw' statement. Edit: Try the steps ...
MC_Brisbane - JUST Pool's 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 ...
KryptoKing'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,294
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.
Samuel Leathers's 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 ...
angerman's user avatar
  • 359

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