Skip to content

fix(lang-v2): register declare_program! imported IDL type aliases - #4923

Open
akash-osec wants to merge 1 commit into
otter-sec:anchor-nextfrom
akash-osec:fix/v2-declare-program-alias-idl-deps
Open

fix(lang-v2): register declare_program! imported IDL type aliases#4923
akash-osec wants to merge 1 commit into
otter-sec:anchor-nextfrom
akash-osec:fix/v2-declare-program-alias-idl-deps

Conversation

@akash-osec

Copy link
Copy Markdown
Member

Fixes finding AI # 17
declare_program! imported IDL aliases were plain Rust type aliases, so IDL lowering emitted defined references but dependency registration only saw the underlying type, leaving alias definitions out of generated IDL. Now we emit imported aliases as transparent newtypes with IdlAccountType registration and forward dependency collection to the alias target, matching local Pod alias behavior.

@vercel

vercel Bot commented Aug 13, 2026

Copy link
Copy Markdown

@akash-osec is attempting to deploy a commit to the OtterSec Team on Vercel.

A member of the Team first needs to authorize it.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 97.67442% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (anchor-next@e4878b6). Learn more about missing BASE report.

Files with missing lines Patch % Lines
lang-v2/derive/src/lib.rs 97.67% 1 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@              Coverage Diff               @@
##             anchor-next    #4923   +/-   ##
==============================================
  Coverage               ?   64.70%           
==============================================
  Files                  ?      127           
  Lines                  ?    16645           
  Branches               ?        0           
==============================================
  Hits                   ?    10770           
  Misses                 ?     5875           
  Partials               ?        0           
Flag Coverage Δ
v2 64.70% <97.67%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants