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

ts, cli: Overrideable workspace program addresses #308

Merged
merged 1 commit into from
May 23, 2021

Conversation

armaniferrante
Copy link
Member

@armaniferrante armaniferrante commented May 23, 2021

This change allows one to easily run their tests against any cluster. Simply change the Anchor toml's cluster variable to the desired network slug. For example, the following config would run anchor tests against Devnet.

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

[clusters.mainnet]
multisig = "A9HAbnCwoD6f2NkZobKFf6buJoN9gUVVvX5PoUnDHS6u"

[clusters.devnet]
multisig = "F3Uf5F61dmht1xuNNNkk3jnzj82TY56vVjVEhZALRkN"

To run against mainnet, change the provider.cluster setting to mainnet.

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 this pull request may close these issues.

None yet

1 participant