onflow / onflow/flow-cli

Accounts declared in the flow.json are not created when emulator is launched

Open
#1,109 2 comments 0 reactions 1 assignee View on GitHub

@devbugging is already working on this.

Since Jun 26, 2023.

Feature Feedback
Dominant language
Go
Stars
209
Forks
87
Avg merge
1d 17h
Merged PRs (30d)
3

Description

https://github.com/onflow/flow-emulator/issues/405

from flow-emulator repo by @cybercent

###Instructions

flow accounts create adds and account to the flow.json file.

When relaunching the emulator the accounts defined in the flow.json are not recreated.

There should be a command to recreate the accounts defined in the flow.json file.

###Problem

Accounts defined in flow.json not present in emulator.

Steps to Reproduce

{
"accounts": {
"AccountA": {
"address": "01cf0e2f2f715450",
"key": "some_private_key"
},
"AccountB": {
"address": "179b6b1cb6755e31",
"key": "some_private_key"
},
"AccountC": {
"address": "f3fcd2c1a78f5eee",
"key": "some_private_key"
},
"default": {
"address": "01cf0e2f2f715450",
"key": "some_private_key"
},
"emulator-account": {
"address": "f8d6e0586b0a20c7",
"key": "some_private_key"
}
},
"deployments": {
"emulator": {
"default": [],
"emulator-account": []
}
}
}

###Acceptance Criteria

There should be a command to recreate the accounts defined in the flow.json file.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.