Skip to content

ts, cli: Overrideable workspace program addresses#308

Merged
armaniferrante merged 1 commit intomasterfrom
armani/wsoverride
May 23, 2021
Merged

ts, cli: Overrideable workspace program addresses#308
armaniferrante merged 1 commit intomasterfrom
armani/wsoverride

Conversation

@armaniferrante
Copy link
Copy Markdown
Contributor

@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.

1 participant