flow-cli
flow-cli copied to clipboard
Create account removes deployment section
If I have the following flow.json:
{
"networks": {
"emulator": "127.0.0.1:3569",
"mainnet": "access.mainnet.nodes.onflow.org:9000",
"sandboxnet": "access.sandboxnet.nodes.onflow.org:9000",
"testnet": "access.devnet.nodes.onflow.org:9000"
},
"accounts": {
"emulator-account": {
"address": "f8d6e0586b0a20c7",
"key": "09f3d3a54819c8004cb8b71169f0caf6f9df4528fce015ec0302797c15051d69"
}
},
"deployments": {
"emulator": {}
}
}
and I go to create an account with flow accounts create
and choose emulator it will remove my "deployments" section.
I just tried this with the following flow.json and that worked just .find
{
"contracts": {
"Foo": "Foo.cdc"
},
"networks": {
"emulator": "127.0.0.1:3569",
"mainnet": "access.mainnet.nodes.onflow.org:9000",
"testnet": "access.devnet.nodes.onflow.org:9000"
},
"accounts": {
"emulator-account": {
"address": "f8d6e0586b0a20c7",
"key": "612e4e9d66a81d8d047b46ed42529c62e57da4f8efac000395b578508659d309"
},
"test": {
"address": "01cf0e2f2f715450",
"key": "b9e1e76a959b0f3160416dc5727115c333853076a0dbf4fb9fa48f795797ef42"
},
"test2": {
"address": "01cf0e2f2f715450",
"key": "d82a531ed95fd4a37ca28170dc945791527dc52f6b373d5e58fa310c7f12f9a1"
}
},
"deployments": {
"emulator": {
"emulator-account": [
"Foo"
]
}
}
}