Hot answers tagged

3

As the contract always has to have some ADA All UTxOs must have the minLovelace amount of ADA attached to it. That includes UTxOs at script addresses and in wallets. A transaction couldn't output the T token to Wallet 3 without including the minLovelace ADA (both are included in the same UTxO). This is so bad actors don't just mint tons of new UTxOs and ...


3

I was able to overcome this issue by running GC_DONT_GC=1 npm start.


3

You have to delete the module declaration at the top of the file. Try that and recompile. Lars mentions this here: https://youtu.be/K61Si6iQ-Js?t=86 P.S. I missed this originally as well!


3

I just removed the module section of the code in EnglishAuction.hs and paste it into playground web. It work and no compiler error. module Week01.EnglishAuction ( Auction (..) , StartParams (..), BidParams (..), CloseParams (..) , AuctionSchema , start, bid, close , endpoints , schemas , ensureKnownCurrencies , printJson , printSchemas , ...


2

Due to my low rep score, I cannot comment in Mitchell Turner's answer, so I answer here instead :) As Mitchell said, all UTxOs must have the minLovelace amount of ADA attached to it. I just want to add a couple points to it The amount of minLovelace (in the EnglishAuction) is hardcoded by Lars to 2 ADA - https://github.com/input-output-hk/plutus-pioneer-...


2

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 :: AsContractError e => Contract () Schema e () contract = awaitPromise storeFront


2

I am afraid that via the cardano-cli, you will not be able to do that. Indeed the cli evaluates the execution units before you get to sign the transaction. Signatories are however available in the script context from a Plutus standpoint. Right now, I don't know any other way than doing it "the Haskell way" and by pre-constructing the transaction ...


1

Each week there will be a new id/tag for the git checkout, as Plutus is under constant development. Use the one from the lecture this week, and then next week use the one from next week's lecture. Here's a video which helps explain commits and checking out. I'm new to this stuff as well so it helped me understand a bit better. https://www.youtube.com/watch?v=...


1

I seriously doubt this would be possible. As its name suggest, Ed25519KeyHash is a signature provided through a cryptographic hash of the initial key. Such a process is not reversible and is not intended to be. I don't know the use case but if you need the initial address the hash comes from, you have to provide it another way.


1

Please log a github issue for this https://github.com/input-output-hk/plutus-apps I will make sure it gets followed up on


1

It’s because def :: SlotConfig method is not found. You have to “import Data.Default” first


1

Fortunately, someone in the discord had this exact same problem. I had suggested running nix-build, but that errored out. Apparently the solution was to set this first, before running the command: GC_DONT_GC=1 Here is the original message from the pioneers-lounge in the discord: https://discord.com/channels/826816523368005654/862912746847993887/...


1

Looks related to an issue I ran into where the directories were missing. I needed to git checkout a patch. Possible solution - https://cardano.stackexchange.com/a/6251/6004 The instructions are at : https://tutorials.cardanoacademy.io/plutus-pioneer-program/setting-up-plutus-playground/cloning-plutus-repository


1

As Marco writes, this is fine. The (Nothing,Webserver { ... }) line is just informative. The warnings are also of informative value only and do not constitute an actual error.


1

I think you don't need to build plutus-pab dependency, if you already have nix installed you can also follow the steps written here.


1

Never mind. I figured out you have to run the command as root. My issue now is I am flagged I don't have enough space in my root partition. Luckily I already have a new drive so I will come back to the question if I still get an error once I've migrated to the new drive.


1

This is not possible. Smart contracts cannot know secrets. But there is another solution for your use case. You need to split the auction into two rounds. In the first round the bidders commit to an offer through a hash of the price (concatenated with a random string). In the second round all bidders disclose their offer (I.e. the concatenated string) and ...


1

Remember Cardano is a public ledger, so anyone can read the values that are submitted to contracts. It is possible to blind the data on a redeemer until after a deadline. You could have each submitted redeemer be hashed against a secret only known to the bidder. Once the deadline is passed, each bidder can choose to reveal their secrets, and thus their bids. ...


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