When I start VS Code emulator, it select “Service accounts” as a default account, and I am manually selecting to account 1 to be able to deploy the smart contract. Unlike flow playground, it looks like I cannot keep deploying the same contract into same account as I get
failed to save object: path /storage/NFTCollection in account 0x1cf0e2f2f715450 already stores an object . Therefore, I have to do this following logic, every time I save code.
- Stop emulator
- Start emulator
- Change account from service account to 1
- Click “Deploy”.
Are there any way to decrease the step? It’s a bit annoying that I have to go to the flow all the time.