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 :: ...
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 ...
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 -&...
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 -> () -> ...
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....
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 ...
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.
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 ...
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 ...
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 ...
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.
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
error × 23plutus-pioneer-program × 4
plutus × 3
transaction × 3
cardano-node × 3
syncing × 3
smart-contract × 2
plutus-playground × 2
minting × 2
week05 × 2
lucid × 2
cardano-cli × 1
nft × 1
native-assets × 1
testnet × 1
plutustx × 1
cardano-address × 1
node × 1
nix × 1
vscode × 1
mint × 1
blockfrost × 1
mainnet × 1
ubuntu × 1
pab × 1