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 ...
Lars Brünjes's user avatar
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 ...
kolam's user avatar
  • 385
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: ...
Frank DelPidio's user avatar
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(..)) ...
kolam's user avatar
  • 385
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-...
james's user avatar
  • 1,505
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 ...
georgeos's user avatar
  • 1,754
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 @(...
georgeos's user avatar
  • 1,754
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 ...
Kaliman's user avatar
  • 160

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