1

enter image description here

Here you can see the 'grab' endpoint being correctly set.

enter image description here

And here you can see the Tx2 slot for the grab endpoint is missing.

enter image description here

Also, some lines of the trace are being cut off, I'm not sure if this is relevant but I'm worried this is because of an issue as well.

Am I missing some important configuration that would cause these issues? I verified that the code is correct via the Solutions so I'm not really sure where these issues could be coming from.

1 Answer 1

1

Apologies for bumping an old question. You've surely figured it out long ago, but the question remained unanswered and is still relevant for others, so here goes:

  1. The missing transaction is due to Plutus Playground's requirement that the simulation include a final 'wait' Action of at least one slot for the last transaction to be processed. Would make sense for Playground to automatically process 1 additional slot after the last declared wallet action, but for now it doesn't.

  2. I've also noticed that the Trace records are truncated, but it also occurs when the simulation being evaluated runs as expected. Not sure whether it's ubiquitous or peculiar to running Playground within WSL2.

On the topic of interpreting the Logs and Trace listings, here are three points that may make them easier to track:

a. Logs area is presented sequentially for the entire simulation, slot-by-slot.

b. Trace is presented sequentially per Wallet (in case you're as confused as I was at first about the slot numbers not being sequential). Unfortunately, I haven't figured out what the "Iteration" numbers represent yet.

c. It's easy to become lost or overwhelmed with the amount of data in Logs & Traces, but by including a unique tag within all of your traceIfFalse and logInfo messages (e.g., appending [dbg] to each message), and then searching for that tag on Playground's results page, you may find it much easier to track the event flow.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.