Questions tagged [plutus-playground]
Plutus Playground provides an environment for writing and testing smart contracts before they are released on the Cardano blockchain.
109
questions
0
votes
1
answer
36
views
Did I update Plutus Apps Repo Wrong?
I just did a git pull updating my plutus repos from the one used in plutus pioneers 3 to the full state. I did not choose to move the HEAD to the commit mentioned and wanted to see what happens if I ...
0
votes
1
answer
27
views
Plutus Playground - mustPayToTheScript - unexpected char escapes - 0 converted to \NUL, 1 to \SOH
I am having trouble with the mustPayToTheScript function - I am getting this error
Contract instance stopped with error: "WalletError (InsufficientFunds \"Total: Value (Map [(,Map [(\\\"...
1
vote
1
answer
75
views
cardano-cli not showing utxo but Testnet Blockchain Explorer does
I have requested funds via Faucet, twice in fact because the first one I thought the request didn't go through but when I run:
cardano-cli query utxo --address $(cat 01.addr) --testnet-magic ...
0
votes
1
answer
44
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
1
answer
97
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
2
answers
97
views
Plutus Playground vs Plutus Application Backend vs Plutus Application Framework
Is the Plutus Application Backend another name for the Plutus Playground? If not what is the Plutus Application Backend? Also is the Plutus Application Framework the Plutus Playground?
2
votes
1
answer
305
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 ...
1
vote
1
answer
100
views
Error Starting plutus-playground-client
I'm having error running the plutus-playground-client. Not sure where to look, here is the complete error log. Any suggestions on how to fix?
0 info it worked if it ends with ok
1 verbose cli [
1 ...
1
vote
2
answers
209
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
1
answer
162
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 ...
1
vote
2
answers
110
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
1
answer
94
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-...
1
vote
1
answer
67
views
Smart contract configuration
Is it possible to write smart contract validator that would check:
if UTXO that contains service price information was included so only script can read what is actual price of the service.
UTXO with ...
2
votes
1
answer
159
views
"bash: plutus-pab-generate-purs: command not found" issue when run plutus-playground on Ubuntu
I've followed guide for running plutus-playground .
But when I npm run start on plutus-playground-client, it says 'bash: plutus-pab-generate-purs: command not found'.
Please check screenshot on ...
1
vote
2
answers
80
views
Error cabal build: "Failed to build lzma-0.0.0.3" even in nix-shell and also tried "sudo-apt install liblzma-dev"
I'm trying to run the command "cabal build" the Week02 code of plutus-pioneer-program but it has this error and I have tried everything but the same error keeps appear:
Failed to build lzma-...
7
votes
1
answer
133
views
How can you run the Plutus Playground and serve the Haddock documentation from the VSCode DevContainer?
I am still looking to settle on a dev environment for Plutus contracts.
I am thinking about using VSCode with the devcontainer, but would like to know how well it all integrates. Is it easy to have ...
0
votes
2
answers
140
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 ...
0
votes
1
answer
146
views
Select only one UTxO from script address
I need to get only one UTxO from the script address, where its datum hash matches the redeemer hash. For example I have locked two UTxO with 10 Ada and the DatumHash "house" at the script ...
0
votes
1
answer
239
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 ...
0
votes
1
answer
61
views
I'm getting errors in Week05 Solution.hs
Im trying to run Week05's home work solution 1 on the online plutus playground enviornment but I keep getting errors in lines 79 to 84 dose anybody know how to fix this?
code pasted below along with ...
1
vote
1
answer
100
views
On the off-chain code of homework 3 cohort 3
I was solving homework1.hs of week 3 of the third cohort and I think there is something wrong with the off-chain code of the solution given the validator. Namely the following, the off-chain part does ...
0
votes
0
answers
14
views
Unable to increase max interpretation time for Plutus Playground Server
I am following PPP Cohort 3 Lecture 3. My plutus playground is working correctly on Windows 10 WSL2. However, I am unable to increase the max interpretation time for Plutus Playground Server. I ran ...
0
votes
0
answers
12
views
nix-shell fails when first run
I am new to cardano development and I was following the instruction manual that was linked in plutus pioneer program lecture This link and everything went well until I ran nix-shell there is where I ...
4
votes
2
answers
66
views
When can we expect live deployment of the Plutus Playground
I am working with a low end device, and the live deployment of the playground is what I'm counting on. When can I expect it and is there any community deployed server that is active now?
7
votes
0
answers
97
views
Developers are having dismal experience building on Cardano [closed]
When developers get into plutus playground, 10 out pf 10 expect it to work like remix, an IDE. You put a code in. You compile and deploy. And then start interacting with the dApp. All in the same ...
4
votes
3
answers
127
views
How do users interact with smart contract?
In plutus playground, there is an example called “Vesting”. In the simulation, users can interact with this smart contract by click on “vest fund” or “retrieve funds”.
Now suppose that we compile this ...
6
votes
1
answer
161
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 ...
3
votes
3
answers
243
views
How to turn (compile) “script.hs” into “script.plutus”?
I have a script that is developed in Plutus Playground. It is working well and now I want to deploy it to the Cardano blockchain via cardano-cli.
Following this answer, I have to use cabal to turn my ...
1
vote
0
answers
54
views
Plutus Playground WalletError: InsufficientFunds
I am running my smart contract on the plutus-playground and getting the error below:
Contract instance stopped with error: "WalletError (InsufficientFunds \"Total: Value (Map [(,Map [(\\\&...
1
vote
2
answers
79
views
Plutus playground error when running simulator: WalletContractError ToCardanoError (Tag \"toCardanoPolicyId\" (Tag \"1 bytes\" DeserialisationError))
Plutus-apps v2022-04-06
My smart contract compiles successfully however when i run the simulator i get this error
Contract instance stopped with error: "WalletContractError (ToCardanoError (Tag \&...
0
votes
1
answer
31
views
Convert ChainIndexTxOut to TxOutTx
I have this function that is expecting type TxOutTx, but it receives ChainIndexTxOut. I'm trying to convert to the type required but encountering issues
getTradeDatum o = case txOutDatum (txOutTxOut o)...
1
vote
1
answer
44
views
Plutus Playground parsing Wallet error: EndpointDecodeContractError
I ran the code from this plutus playground tutorial in the online playground
https://playground.plutus.iohkdev.io/doc/plutus/tutorials/basic-apps.html#
I'm getting this error when entering a number ...
1
vote
1
answer
26
views
Plutus playground not starting with Interpreter error after running :set in GHCI
plutus-playground-server: user error (Error evaluating simulation: InterpreterError (CompilationErrors [CompilationError {filename = "\n/private/tmp/web-ghc-work-1626f2e537d27294/Main.hs", ...
1
vote
1
answer
97
views
Plutus Playground Server error: opening lock file '/nix/...root.lock': Permission denied
So I've been going through the Plutus Pioneers 3rd cohort lectures and last night accidentally left my computer unplugged. When I booted up Ubuntu Linux on the computer this morning I noticed I have 3 ...
0
votes
1
answer
71
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 ...
3
votes
6
answers
195
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:
-- ...
...
0
votes
2
answers
94
views
Where do I find correct and current git checkout?
Update and detailed answer Feb 4, 2022.
For the purposes of the Plutus Pioneer Program, the checkout information can be found in the weekly cabal.project file, located (for Week04, as an example, and ...
1
vote
0
answers
17
views
Why can't I use the same wallet more than once in Plutus Playground?
I'm currently testing my app in the "Plutus Playground" and the simulation will not let me call an endpoint from the same contract more than once.
When I try to use the same wallet, the ...
2
votes
1
answer
46
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
1
answer
24
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 ...
3
votes
1
answer
129
views
plutus-playground-server: user error (Error evaluating simulation: JsonDecodingError
I'm following the first lecture in the plutus pioneer program but I cannot set up the local environment. The error happens when running npm start on a nix-shell after initializing the playground ...
1
vote
1
answer
56
views
Where does the PAB run?
I understand that PAB is a backend that:
provides a standardized environment in which Plutus applications run
provides disciplined state management
presents discoverable interfaces to the external ...
0
votes
1
answer
44
views
Error signer not found - txInfoSignatories
I'm trying to implement lock and withdraw of an NFT, but when I tried to check the signer on-chain with the function:
signer :: PubKeyHash
signer = case txInfoSignatories (scriptContextTxInfo ctx) of ...
1
vote
1
answer
166
views
Can't compile Plutus Playground examples: Could not find module `Playground.Contract' (Ubuntu 20.04)
I can't compile any of the example scripts using Plutus Playground gui:
Compilation Error, Line 2, Column 1 (jump)
error:
Could not find module `Playground.Contract'
Use -v (or `:set -v` in ...
2
votes
0
answers
27
views
About Fees in the Plutus Playground
I had been reviewing sample codes that can be run in the Plutus Playground, particularly the Vesting.hs code in Cohort #3 Week #3 of PPP. So while trying several cases in the simulation, I sometimes ...
1
vote
0
answers
89
views
How to add 'ToSchema' to Address (in Playground)?
I'm doing homework2 of week05 (cohort3). My contract runs fine in the repl, but when I try it in the playground, I'm running into an issue. It fails on this line:
mkSchemaDefinitions ''NFTSchema
I ...
5
votes
1
answer
140
views
Setting up Plutus environment for Apple Silicon computer
I'm trying to setup dependencies to write and test plutus contracts, but I'm worried that the dependencies may not be compatible with the M1 chip.
I have been following these instructions https://www....
0
votes
1
answer
35
views
English Auction Compilation Failure. Need help understanding the compile error message
I need help.
Followed the lecture up to the compile.
Got this failure :
ConnectionError (HttpExceptionRequest Request { host = "localhost" port = 8080 secure = False requestHeaders = [("...
1
vote
3
answers
71
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?
1
vote
1
answer
129
views
what is "WalletError (ValidationError (ScriptFailure (EvaluationError [\"PT5\"] \"CekEvaluationFailure\")))" when trying in playground?
I have Homework1 of week 5, and it works in the repl (meaning, the test gives the expected result). However, when I try the script in the playground (and remove the test - I don't think that makes a ...