flow-playground icon indicating copy to clipboard operation
flow-playground copied to clipboard

Add ability to add more accounts to Playground

Open timongll opened this issue 3 years ago • 6 comments

Right now FlowPlayground only has 4 accounts available. However, many projects like https://github.com/dapperlabs/nba-smart-contracts/tree/master/contracts require more than 4 accounts (6 for nbats) to test all the contracts

Add ability to add more dummy accounts, just like how you are able to add transaction/script templates

timongll avatar Mar 17 '21 05:03 timongll

Start projects with 8 accounts (only show 3 - the minimum for the tutorials), and allow users to add more as needed via the UI. @MaxStalker

srinjoyc avatar Feb 25 '22 16:02 srinjoyc

I have started working on this issue.

Solution would allow to increase/reduce number of visible accounts, allowing to deploy more than 5 accounts at once. Reducing number of accounts would simply hide latest visible account without affecting it's state or deployed contracts. It won't be possible to remove specific account, cause this could create unnecessary complexity with shifting indexes/addresses of the accounts.

I identified pieces that need to be adjusted and currently working on back-end implementation of this solution. You can keep track of it here - https://github.com/onflow/flow-playground-api/issues/22

MaxStalker avatar Mar 07 '22 16:03 MaxStalker

Work on this issue is stalled in favor of other critical pieces of Playground - Language Server integration and interaction, specifically. I will post to this thread when there will be more progress on the issue.

MaxStalker avatar May 05 '22 15:05 MaxStalker

per confirmed with Max, this task will be put to backlog

kerrywei avatar May 09 '22 13:05 kerrywei

@MaxStalker Is it ok if I take this issue?

neil-ptr avatar May 10 '22 18:05 neil-ptr

@neilZon absolutely! hit me up, I will give you all the info I have found how to enable this ;)

MaxStalker avatar May 11 '22 08:05 MaxStalker