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

cli: Expose --account flag for solana-test-validator in Anchor.toml #1366

Merged

Conversation

tomlinton
Copy link
Contributor

@tomlinton tomlinton commented Jan 27, 2022

Add test.validator.account to the toml with filename/address to expose --account. I also moved test.clone to test.validator.clone for consistency. I think all the validator configuration flags should live under test.validator.

Example:

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

[programs.localnet]
basic_0 = "Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"

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

[test.validator]
url = "https://api.mainnet-beta.solana.com"

[[test.validator.clone]]
address = "9s3RbNan8nLetHoGFVgCJ4fABF3f5ha9dxcGqSdFrD9e"

[[test.validator.account]]
address = "Ev8WSPQsGb4wfjybqff5eZNcS3n6HaMsBkMk9suAiuM"
filename = "test_account.json"

[[test.validator.account]]
address = "H4YJ7ESVkiiP9tGeQJy9jKVSHk98tSAUD3LqTowH9tEY"
filename = "test_account.json"

Closes #1260

@tomlinton tomlinton marked this pull request as ready for review January 29, 2022 08:40
CHANGELOG.md Outdated Show resolved Hide resolved
@armaniferrante armaniferrante merged commit 5e2821f into coral-xyz:master Feb 1, 2022
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.

cli: Provide the ability to specify account data configs
2 participants