I am attempting to implement the weekly tech assignment regarding the “Hello World” example while using the CLI and Emulator. I downloaded VSCode and followed the instructions on how to get the vscode extension as well. I have this code:
I ran flow emulator start --init inside my HelloWorldFlow directory as well and it gave me the flow.json file. Now, when I do Shift + Command + P (for mac) and type run emulator, it gives me the terminal and everything, but I get this error when trying to run the transaction:
@jacobtucker We forgot to include this in the vscode instructions, but the first account is reserved for the service account, which is a special account in Flow. So please do not try to deploy your code to that account or it will break the emulator. You’ll need to restart the emulator and deploy to the 2nd, 3rd… accounts.
We recognize this was a mistake and we’re fixing the extension to not show the service account. I’ll also update the instructions to point out this discrepancy in the meantime
@makoto Could you try, running the stop emulator command, the restart language server command, and the run emulator command, in that order, to restart the emulator. Then make sure you see in the output window that the initial accounts are being created correctly. Then try again after that.
Has this been taken down or do I just not have access to it yet? I’m trying to learn how to install the cadence extension for VScode so that I can start learning how to build some tools for Flow.