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

anchor keys sync change Anchor.toml [provider] unexpected #3388

Closed
xG0Ian opened this issue Nov 28, 2024 · 1 comment
Closed

anchor keys sync change Anchor.toml [provider] unexpected #3388

xG0Ian opened this issue Nov 28, 2024 · 1 comment
Labels
bug Something isn't working cli duplicate This issue or pull request already exists

Comments

@xG0Ian
Copy link

xG0Ian commented Nov 28, 2024

when use custom rpc:

[provider]
cluster = "https://rpc.ankr.com/solana_devnet"
wallet = "~/.config/solana/id.json"

and run:

  1. rm target/deploy/*-keypair.json
  2. anchor keys sync

Anchor.toml will be changed to:

[provider]
cluster = ["https://rpc.ankr.com/solana_devnet", "wss://rpc.ankr.com/solana_devnet"]
wallet = "~/.config/solana/id.json"

and we will get this error from anchor keys sync:

Workspace configuration error: Unable to deserialize config: TOML parse error at line 14, column 11
   |
14 | cluster = ["https://rpc.ankr.com/solana_devnet", "wss://rpc.ankr.com/solana_devnet"]
   |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
invalid type: sequence, expected string or map
@acheroncrypto acheroncrypto added bug Something isn't working duplicate This issue or pull request already exists cli labels Nov 28, 2024
@acheroncrypto
Copy link
Collaborator

Thanks for creating the issue. However, a similar issue exists in #3222, so I'm closing this one as duplicate to not divert attention.

@acheroncrypto acheroncrypto closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants