7
votes
Accepted
Blockchain Simulator Chokes on Validation Error
The problem is that in the off-chain wallet code, after submitting the transaction, there is a line of code that waits for the transaction to be confirmed. Seeing as the transaction is invalid, it ...
3
votes
Accepted
The PAB is no longer working after upgrading the Plutus version
Plutus is still in active development, so changes in the API can occur every week.
For your case, go look at a similar example in the PAB.
In your specific case, you'll need to change your handlers ...
3
votes
Plutus Pioneer Program - Problem with plutus playground client
You can try configuring the timeout in cardano/plutus/plutus-playground-client/webpack.config.js
devServer: {
contentBase: path.join(__dirname, "dist"),
compress: true,
port: ...
3
votes
Accepted
Funding emulator wallets with custom currencies
Here's an example:
import Data.Default (def)
import qualified Data.Map as Map
import qualified Ledger.Ada as Ada
import qualified Ledger.Value as Value
import Wallet.Emulator.Wallet (Wallet(..))
...
3
votes
Accepted
Custom currency error: Cannot build the initial state: Tag "toCardanoPolicyId"
ff is not a valid PolicyId (aka CurrencySymbol). It must be 28 bytes.
For examples, see this answer on this similar Github issue https://github.com/input-output-hk/plutus-apps/issues/732#issuecomment-...
1
vote
How to call a endpoint with a new wallet in a already instantiated contract
You need to define contracts for every endpoint that you need to call. So, an endpoint for Lock and other one for Guess
Something like this:
data GuessGameContracts = Lock
| Guess
...
1
vote
How to get the final balances using the PAB+ the simulator?
You need to include these lines at the end:
Simulator.logString @(Builtin TestContracts) "Balances at the end of the simulation"
b <- Simulator.currentBalances
Simulator.logBalances @(...
1
vote
What is achieved by invoking endpoint for wallet in the emulator?
So why must I also invoke the grab endpoint for Wallet 2 (trace12)? What
changes if instead it's invoked for Wallet 3 (trace13)?
You must invoke it in order to receive funds that are locked in the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
simulator × 10plutus × 8
plutus-pioneer-program × 4
wallet × 2
pab × 2
smart-contract × 1
plutus-playground × 1
haskell × 1
script × 1
output × 1
plutus-starter × 1
plutus-apps × 1
emulator × 1