Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Add predeployed via CLI contracts to FlowManager #102

Open
@MaxStalker

Description

@MaxStalker

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions