Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some instances of localhost may need to be localnet #23

Open
mikemaccana opened this issue Jun 4, 2023 · 0 comments · May be fixed by #24
Open

Some instances of localhost may need to be localnet #23

mikemaccana opened this issue Jun 4, 2023 · 0 comments · May be fixed by #24

Comments

@mikemaccana
Copy link

mikemaccana commented Jun 4, 2023

Just following the instructions:

Make sure that you have Solana locally in localhost and change all the devnet references to localhost

$ npx anchor localnet
Workspace configuration error: Cluster must be one of [localnet, testnet, mainnet, devnet] or be an http or https url

What I ended up doing was setting this in my Anchor.toml - I'm not 100% sure it's correct (I have little Anchor experience, hence not sending a PR) but it worked:

[programs.localnet]
solana_svelte_counter = "C7SGr2s3HdBuEveTahL9H3CsXQDwxkYEUSRPeJAVeDN5"

[registry]
url = "https://anchor.projectserum.com"

[provider]
cluster = "localnet"
wallet = "~/.config/solana/id.json"

[scripts]
test = "mocha -t 1000000 tests/"

Does that sound correct? If so let me know and I will add the to the PR I will send - I have a bunch of small fixes to contribute! 😊

@mikemaccana mikemaccana linked a pull request Jun 4, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant