IntersectMBO / plutus-apps

The Plutus application platform
Apache License 2.0
306 stars 214 forks source link

Plutus Playground simulator splits wallet balance into 10 outputs #446

Open catch-21 opened 2 years ago

catch-21 commented 2 years ago

Summary

The simulator is unnecessarily splitting wallet balances into 10 outputs.

Steps to reproduce the behavior

  1. Go to https://playground.plutus.iohkdev.io/
  2. Select "Hello World" contract
  3. Simulate
  4. Evaluate
  5. Observe outputs

Actual Result

Wallet 2 and Wallet 1 both have 10 outputs. Screenshot_20220503_115145

Expected Result

There could have been just 1 output for each wallet.

Describe the approach you would take to fix this

No response

System info

Staging: fdb0eec477fc0f99f5edfdbc11c041dbd35ca6bb Prod is probably e4062bca213f233cdf9822833b07aa69dff6d22a (tag: v2022-04-06)

zmrocze commented 2 years ago

related code: emulatorStateInitialDist.

I don't get the explanation there, how is number 10 the exact good one?