Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add predeployed via CLI contracts to FlowManager #102

Open
MaxStalker opened this issue May 12, 2022 · 0 comments
Open

Add predeployed via CLI contracts to FlowManager #102

MaxStalker opened this issue May 12, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request P-Low

Comments

@MaxStalker
Copy link
Collaborator

Issue To Be Solved

It's possible to instruct emulator to predeploy some specific contract, when it starts.
One of the basic case is to deploy NonFungibleToken, NFTStorefront and FUSD contracts by passing "--contracts" flag.
But CLI can also deploy other contracts specified in flow.json file.

The problem is that none of those contracts are registered in FlowManager contract and thus can't be properly resolved later in transactions and scripts.

Suggest A Solution

Since FlowManager is deployed after other contracts, we can't listen for events from those contracts. I suggest creating a "system" which will parse flow.json file to figure out, where said contracts could have been deployed. Then checking those accounts and updating the FlowManager entries.

@MaxStalker MaxStalker added the enhancement New feature or request label May 12, 2022
@MaxStalker MaxStalker self-assigned this May 12, 2022
@jribbink jribbink added the P-Low label Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P-Low
Projects
None yet
Development

No branches or pull requests

2 participants