fix: enfore type & count matching between ix handler and #instruction[(..)] args by Otter-0x4ka5h · Pull Request #4000 · solana-foundation/anchor

added 4 commits

October 17, 2025 12:36

@Otter-0x4ka5h Otter-0x4ka5h changed the title fix: enfore type matching between ix and #instruction[(..)] args fix: enfore type & count matching between ix handler and #instruction[(..)] args

Oct 19, 2025

jamie-osec

Akash Thota added 2 commits

October 21, 2025 10:58

jamie-osec

@jacobcreech

jacobcreech

Otter-0x4ka5h added a commit to Otter-0x4ka5h/anchor that referenced this pull request

Mar 25, 2026
…[(..)] args (solana-foundation#4000)

* fix: silent compiles of ix when #instruction[(..)] expects more args than passed

* cargo fmt

* fix fmt

* fix: enfore type matching between ix and #instruction[(..)] args

* fix: for non #instruction[(..)] accounts

* fix: check for min(expect, actual) params and make remaining stub

* fix: check for min(expect, actual) params and make remaining stub

* chore(add): add unreachable derivate to silence unwanted warnings

* add diagnostic message

---------

Co-authored-by: Akash Thota <your.email@example.com>
Co-authored-by: Jacob Creech <82475023+jacobcreech@users.noreply.github.com>