Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: "1.85.0"
toolchain: "1.93.1"
override: true

- name: Install Solana
Expand Down
19 changes: 19 additions & 0 deletions anchor-rock-paper-scissor-1.0/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
*.DS_Store
.idea
**/*.rs.bk
**/target/*
**/node_modules
**/test-ledger
**/.anchor
**/.bolt
**/.yarn
**/.next/
**/.env
!/anchor-counter/target/deploy/anchor_counter-keypair.json
!/bolt-counter/target/deploy/counter-keypair.json
!/bolt-counter/target/deploy/increase-keypair.json

# But don't ignore the target/idl/ directory
!**/anchor-minter/target/idl/
!**/anchor-counter/target/idl/
!**/anchor-minter/target/deploy/
Comment on lines +12 to +19
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Remove unrelated unignore rules.

The anchor-counter/, bolt-counter/, and anchor-minter/ whitelisting rules look copy-pasted from another project; they have no matching paths in this example and only add noise. Consider trimming them to just the entries that apply to anchor-rock-paper-scissor-1.0/.

🛠️ Suggested trim
-!/anchor-counter/target/deploy/anchor_counter-keypair.json
-!/bolt-counter/target/deploy/counter-keypair.json
-!/bolt-counter/target/deploy/increase-keypair.json
-
-# But don't ignore the target/idl/ directory
-!**/anchor-minter/target/idl/
-!**/anchor-counter/target/idl/
-!**/anchor-minter/target/deploy/
+# Keep program keypair / IDL artifacts tracked for this example.
+!/programs/anchor-rock-paper-scissor/target/deploy/anchor_rock_paper_scissor-keypair.json
+!**/target/idl/

Adjust the exact paths to match what you actually want versioned in this example.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@anchor-rock-paper-scissor-1.0/.gitignore` around lines 12 - 19, The
.gitignore contains unrelated unignore rules copied from another repo (notably
the patterns "!/anchor-counter/target/deploy/anchor_counter-keypair.json",
"!/bolt-counter/target/deploy/counter-keypair.json",
"!/bolt-counter/target/deploy/increase-keypair.json", and the idl/deploy
unignore entries for anchor-minter/ and anchor-counter/); remove those entries
and keep only unignore patterns that actually match files in this project (e.g.,
files under anchor-rock-paper-scissor-1.0/), updating the remaining patterns to
reference the project's real paths instead of
anchor-counter/bolt-counter/anchor-minter/ symbols.

16 changes: 16 additions & 0 deletions anchor-rock-paper-scissor-1.0/Anchor.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[toolchain]
anchor_version = "1.0.0"

[features]
resolution = true
skip-lint = false

[registry]
url = "https://api.apr.dev"

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

[scripts]
test = "NODE_OPTIONS='--no-deprecation' yarn run ts-mocha -p ./tsconfig.json -t 120000 tests/**/*.ts"
Loading
Loading