Questions tagged [plutus-playground]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
16 views

ConnectionError: There was a problem with the response body: Unexpected token T in JSON at position 0

I am having an issue with compiling any contracts on the local playground. It doesn't matter even when trying to compile the example contracts that are provided I keep getting this error. I have no ...
1
vote
2answers
36 views

What documentation works with handling utxos at the Putus Script

I am trying to make a Plutus smart contract which locks tokens to the contract and then on endpoint call sends 1 to the caller and then the rest back to the contract. I cant find a distribution model ...
4
votes
1answer
46 views

Week 2 - Homework - valid validator call true/true after invalid call true/false from same wallet doesn't go through

I managed to get the homework transactions to work as expected (happy), so far so good... I also tried the following scenario which did not work. Q1: Why doesn't it work? Q2: How would it be possible ...
0
votes
2answers
33 views

Can I control the amount spent by a plutus Script

I know that you can use collectFromScript to take all of the value from a script but is there a way to make it so you only take 1 ADA from a Script that holds 100 ADA? Thank you
0
votes
0answers
9 views

Child compilation failed [duplicate]

Hello Cardano community. This question has been asked in the community and I would like to resurface it as I am having the same problem. Ref: plutus-playground-client npm start error (MacOs Intel i7) ...
3
votes
5answers
91 views

What is the purpose of the `valHash :: Ledger.ValidatorHash` function in the Plutus Pioneer Program's Week 2 homework?

The homework for Week 2 involves implementing validators for two Plutus contracts. Details are here. Spoiler alert! This probably gives away the answer to Week 2's first homework problem: -- ... ...
1
vote
2answers
31 views

build okay locally, but fails in playground

I am trying to compile the Homework01.hs The build locally on Linux passes when I do :l src/Week02/Homework1.hs Prelude PlutusTx Ledger.Scripts> :l src/Week02/Homework1.hs [1 of 1] Compiling Week02....
1
vote
0answers
22 views

Problem with Lesson 5 code on newer version

I am trying to get signed token up and running on the Plutus playground from lesson 5 and I'm running into an issue with I believe is a depreciated variable of PubKeyHash does any body know the ...
1
vote
1answer
40 views

What is the GC_DONT_GC=1 variable for when running the Plutus Playground locally?

I tried to look for this but I didn't find anything specifically explaining why this fixes errors when launching Plutus Playground locally, although I definitely found instructions on how to go over ...
0
votes
1answer
26 views

Getting status of daemon-socket: Operation not permitted while invoking nix-shell (MacOs)

Plutus Pioneers Week 01 exercise. cloned the plutus-app directory edited the nix.conf file (added the iohk binaries reference) moved to the plutus-app directory After downloading, linking and ...
0
votes
1answer
32 views

Error when executing npm start in plutus-playground-client

I get this error when I try to execute npm start in the plutus-playground-client directory 10% building 0/1 entries 0/0 dependencies 0/0 modulesℹ 「wds」: Project is running at https://0.0.0.0:8009/ ℹ 「...
1
vote
0answers
18 views

Does the plutus playground make all defined function inlinable by defauld?

I noticed that not in all of the examples on the playground the {-# INLINABLE myProgram #-} flag is used. Does the playground natively accept every function as template haskell? Why do some examples ...
1
vote
1answer
31 views

error: suspicious ownership or permission with nix-shell command on plutus-apps repository

Using the nix-shell command in a docker container on GitHub codespaces results in the following error: $ nix-shell --show-trace trace: To materialize project.plan-nix for cabal-install entirely, pass ...
5
votes
1answer
234 views

Q&A English Auction- if a wallets under bids then provides a valid bid, why doesn't it count the second good bid?

if you set up the english auction with three wallets and do the following: Wallet 1 min bid 10 Wallet 2 bids 15 wallet 3 bids 9 wallet 3 bids 20 wallet 1 closes It will got to wallet 2 and wallet ...
0
votes
1answer
20 views

plutus playground simulator wait action question

When using the plutus playground simulator: I'm having trouble finding documentation on the simulator wait actions. What are the differences in functionality between the "wait for" and &...
0
votes
1answer
48 views

Can one find the English Auction Example on the Playground somewhere?

I want to open the English Auction example. I was looking for it on the playground, but couldn't find it. Where did I go wrong? First I have checked out the commit with SHA1 hash ...
1
vote
3answers
49 views

Seller pays the fees?

Is it always the case the seller pays the fees? Is this built in the protocol or is it possible to have buyer pay the fees?
4
votes
1answer
52 views

How do you publish on-chain code to mainnet and testnet?

I've understand that the on-chain code is stored in the blockchain through Playground module which is in sync against a local node. But how to "publish" this code to run anywhere? It's an ...
1
vote
1answer
37 views

Cannot find definitions of tx___ functions in English Auction script

I might be missing some thing but in the English Auction script I am unable to find the definitions of the function that starts with tx: txOutDatumHash txInInfoResolved txOutValue txInInfoResolved ....
0
votes
1answer
19 views

Localhost not displaying anything after running npm start in plutus-playground-client

I'm on a Mac running Big Sur with the intel chip. I've followed all the steps to set up the local Plutus environment as suggested by Lars in the Plutus Pioneer 3rd iteration. Next step is to get the ...
0
votes
1answer
14 views

Error evaluating Simulation in playground

I was finally able to run the playground and I was following exactly what the instructor was saying on the video, adding the wallets and actions but only the genesis transaction shows up when I ...
0
votes
0answers
21 views

Not in scope: type constructor or class ‘PaymentPubKeyHash’ - Week 1 Pioneers Exercise

I'm trying to compile the week 1 code on plutus playground hosted locally, but I'm getting this error: error: Not in scope: type constructor or class ‘PaymentPubKeyHash’ | 57 | { aSeller ...
2
votes
1answer
25 views

Formatted error messages in Playground

Is there any way to get the Playground errors with proper indentations? This can help read better the issue at hand. Instead of getting one huge line: (Tx {txInputs = fromList [TxIn {txInRef = ...
0
votes
1answer
19 views

English Auction Compilation Failure. Need help understanding the compile error message

UPDATE: Issue solved. Since the message appeared to me to be a timeout issue (I'm a mainframe programmer so I'm crash coursing on understanding thrown error messages on this paltform), I took a chance ...
0
votes
0answers
28 views

DecodingError when evaluating EnglishAuction.hs at local Plutus Playground

When I follow steps from Auction Contract on the Playground video on my local Plutus playground, I got the following error message at evaluate step after successfully compiling the code. I'm on mac ...
0
votes
2answers
43 views

How to resolve npm build failure after running `GC_DONT_GC=1 npm start`?

MacOs Catalina 10.15.7 (Intel) After facing issue here, I ran the command GC_DONT_GC=1 npm run start and it build some libraries, however failed with following error (plutus-playground-server was up ...
2
votes
2answers
81 views

/bin/plutus-playground-server: No such file or directory

Can't get plutus-playground-server to start. plutus-playground-server: for development use only /nix/store/601kdlvidgan842yfklrmvpbz6a5xkf7-plutus-playground-server/bin/plutus-playground-server: line ...
3
votes
2answers
149 views

npm run start in plutus-playground-client throws several "Could not find module" errors

I'm trying to run the plutus-playground-client. My OS is macOS Big Sur 11.6.2 I have set up the environment with the following steps based on the nix install instructions from: https://docs.plutus-...
1
vote
0answers
26 views

plutus-pab still not building

I had plutus-playground up and running with a prior commit, but am trying to get the latest version running. I have cloned everything fresh in a new folder. I have successfully run the following ...
0
votes
0answers
25 views

plutus-playground-server exits with with network error

When starting the plutus-playground-server in a nix-shell on an Ubuntu 20.04 machine (ref. step 4 in the plutus setup instructions), it terminates with the following error: Interpreter ready plutus-...
1
vote
2answers
40 views

First time compiling sample Plutus code in local Plutus Playground failed. Can't figure out why

I've been a mainframe programmer my for decades. Never developed on small server platforms. So the biggest challenge I'm having is dealing with the nerve wracking OS setup, Github cloning, server ...
1
vote
2answers
78 views

git checkout 41149926c108c71831cfe8d244c83b0ee4bf5c8a for English Auction doesn't work

According to cabal.project script for the English Auction, the git branch for this plutus script is: source-repository-package type: git location: https://github.com/input-output-hk/plutus-...
0
votes
1answer
132 views

plutus-playground-client crashes on Intel Mac (Big Sur)

After setting up environment for cohort 3 of the pioneers program, running the plutus-playground-client crashes on my Intel Mac (Big Sur). I've been able to successfully set up Nix and all the code ...
1
vote
2answers
51 views

(Solved) error:\n Variable not in scope: main :: GHC.Types.IO a0 in English Auction

I'm trying to compile the English Auction script on a local plutus-playground-client session and I'm getting this error: error:\n Variable not in scope: main :: GHC.Types.IO a0 Any help on why ...
0
votes
1answer
52 views

nix-build fails to build plutus or plutus-playground server/client with error: reading from file: Is a directory

I'm attempting to finish the setup for plutus pioneers cohort3 on wsl2 (Windows 10) with Ubunutu 20.04 Nix version: 2.5.1 I cloned the plutus-apps repo (and previously tried the plutus repo before ...
0
votes
2answers
25 views

Where do I find correct and current git checkout?

When setting up plutus-playground, I have seen comments and at least one other source that advised running git checkout 3746610e53654a1167aeb4c6294c6096d16b0502 #Newer?? git checkout ...
0
votes
1answer
25 views

Webpack warning when starting plutus-playground-client

I am getting a warning when I run npm start on the plutus-playground-client: ℹ 「wds」: webpack output is served from / ℹ 「wds」: Content not from webpack is served from /home/datapool/plutus-apps/plutus-...
0
votes
2answers
61 views

What is minimum RAM for running plutus-playground-server on Ubuntu VirtualBox?

I am facing this issues when running $ nix-build -A plutus-playground.server > error: 1 dependencies of derivation > '/nix/store/39qxl421bhkzks2zrra7vy3yl6qqhsib-zlib-lib-zlib-0.6.2.3-config.drv'...
0
votes
1answer
60 views

Need help installing pioneer-based code on intel Mac (Big Sur)

I'm following the instructions laid out in https://docs.plutus-community.com/docs/setup/MacOS.html to setup my intel Mac (Big Sur) dev environment for cohort 3 of the pioneer program and having issues....
1
vote
1answer
63 views

slotToEndPOSIXTime error

Firstly, when I attempt to build a repl of week01 what I get is Then when I attempt to use slotToEndPOSIXTime I get Any help would be greatly appreciated, thanks! Everything else works great up ...
1
vote
2answers
65 views

nix-shell command causes error "invalid character in Base64 string"

I'm following the Plutus Env: Setup Starter Pack guideline to run a Plutus Playground Local Instance. At step 4, when running the command nix-shell, I got the error message error: invalid character in ...
0
votes
1answer
59 views

Unable to start /plutus-apps client application

Error is occurring for MacOS 12.1 Monterey. Please, let me know, if I should include additional details. I am going through the step noted in this document in order to setup local Plutus app: https://...
0
votes
3answers
160 views

Error running plutus-playground-client in Linux

I have successfully installed nix, cabal and have setup the IOHK binary cache. I cloned the plutus-app repository and successfully built the Haskell packages and other artifacts with nix. Then running ...
2
votes
1answer
196 views

Lessons Learned setting up plutus-playground - feedback welcome

I have finally got the plutus-playground running on 2 separate machines. Each machine is a Mac running Catalina 10.15.7. After extensive trial and error (some self inflicted) I have identified several ...
0
votes
2answers
61 views

Normal buildtime for "nix-build -A plutus-playground.server"

How long should the following build normaly take, when the correct "IOHK binary cache" is set at "nix.conf"? nix-build -A plutus-playground.server
2
votes
2answers
86 views

(Solved) Error building Plutus Application Framework

I am trying to build the Plutus Application Framework. I'm running on Archlinux and both Nix and cabal are installed properly as far as I can tell. I have also set the IOHK Binary Caches. However when ...
1
vote
1answer
58 views

Setting GitHub ID in plutus-playground-server local env

I have been able to get my local nix install of the server and client running on my ubuntu distro. However, I can't find where I can set the GitHub ID for the local server configuration and that is ...
1
vote
1answer
31 views

segmentation fault when building Plutus-playground.server

I'm following the instructions for installing the Plutus-playground found here I discovered I must execute the following before step 10 git clone https://github.com/input-output-hk/plutus-apps.git I ...
2
votes
1answer
25 views

Online Playground does not appear in Safari

Using macOS Catalina 10.15.7 and Safari v 15.2 (15612.3.6.1.8). The Playground URL (https://playground.plutus.iohkdev.io) generates a blank page. It loads fine on Chrome and Brave (haven't actually ...
1
vote
1answer
77 views

Plutus Playground: error evaluating 'hello, world' example

When I try to evaluate the "Hello, world" example at https://playground.plutus.iohkdev.io/, I get the following error: DecodingError: An error occurred while decoding a JSON value: Under '...