You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Plutus Application Framework Related to the Plutus application backend (PAB), emulator, Plutus libraries
Summary
The default config of the simulator creates 10 wallets with 100000000000 lovelaces each.
However, manually created wallets get 10000000000 lovelaces (tested for up to 4 extra wallets).
Steps to reproduce
Using the PAB Simulator from the plutus-starter (version 1.0.9, commit: a85818c27926f34d627225636f463cc6698706fc), I'm getting some odd behavior in terms of wallet creation.
I've created a simple contract (GiftContract) and use a shell script to create four wallets. I have not changed the main function within the pab/Main.hs.
Yet, I am getting this output after shutting down the PAB via hitting return.
As you can see, we have our 10 regular wallets with a balance of 100,000,000,000 lovelaces each. Yet, there is also three wallets with a balance of 10,000,000,000 lovelaces each and a wallet of 59,999,999,960 lovelaces. The sum of those last wallets minus 4 * 10 lovelaces fee (for creation?) would add up to 100,000,000,000 lovelaces (the value of one default simulator wallet), but it is not intuitive nor did I find any documentation on this behavior.
I have followed the plutus-starter readme to create the wallets and activate the contracts in this manner:
To make things more explainable, is there a way for me to disable the automatic creation of the 10 wallets and instead pass how many lovelaces I want the manually created wallets to start with?
Expected behavior
Wallets created by hitting the /wallet/create endpoint should have the same amount of lovelaces as the default wallets.
System info (please complete the following information):
OS: Arch Linux
Version 5.14.3-arch1-1
Plutus version 1.0.9 (plutus-starter a85818c27926f34d627225636f463cc6698706fc)
Area
Plutus Application Framework Related to the Plutus application backend (PAB), emulator, Plutus libraries
Summary
The default config of the simulator creates 10 wallets with 100000000000 lovelaces each.
However, manually created wallets get 10000000000 lovelaces (tested for up to 4 extra wallets).
Steps to reproduce
Using the PAB Simulator from the plutus-starter (version 1.0.9, commit: a85818c27926f34d627225636f463cc6698706fc), I'm getting some odd behavior in terms of wallet creation.
I've created a simple contract (GiftContract) and use a shell script to create four wallets. I have not changed the main function within the pab/Main.hs.
Yet, I am getting this output after shutting down the PAB via hitting return.
As you can see, we have our 10 regular wallets with a balance of 100,000,000,000 lovelaces each. Yet, there is also three wallets with a balance of 10,000,000,000 lovelaces each and a wallet of 59,999,999,960 lovelaces. The sum of those last wallets minus 4 * 10 lovelaces fee (for creation?) would add up to 100,000,000,000 lovelaces (the value of one default simulator wallet), but it is not intuitive nor did I find any documentation on this behavior.
I have followed the plutus-starter readme to create the wallets and activate the contracts in this manner:
To make things more explainable, is there a way for me to disable the automatic creation of the 10 wallets and instead pass how many lovelaces I want the manually created wallets to start with?
Expected behavior
Wallets created by hitting the /wallet/create endpoint should have the same amount of lovelaces as the default wallets.
System info (please complete the following information):
Screenshots and attachments
Additional context
The previous Plutus-Starter version worked as expected (with varying curl commands).
The text was updated successfully, but these errors were encountered: