Skip to content

fix(spl-v2): return CpiGuardSettingsLocked from deprecated CPI Guard … - #4916

Open
akash-osec wants to merge 2 commits into
otter-sec:anchor-nextfrom
akash-osec:fix/v2-cpi-guard-return-error
Open

fix(spl-v2): return CpiGuardSettingsLocked from deprecated CPI Guard …#4916
akash-osec wants to merge 2 commits into
otter-sec:anchor-nextfrom
akash-osec:fix/v2-cpi-guard-return-error

Conversation

@akash-osec

Copy link
Copy Markdown
Member

Fixes finding AI # 14
Deprecated cpi_guard_enable/disable promised Result but always panicked. They now return TokenError::CpiGuardSettingsLocked, matching Token-2022’s CPI rejection without aborting through the public API.

@vercel

vercel Bot commented Aug 12, 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

codecov-commenter commented Aug 12, 2026

Copy link
Copy Markdown

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

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (anchor-next@e4878b6). Learn more about missing BASE report.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@              Coverage Diff               @@
##             anchor-next    #4916   +/-   ##
==============================================
  Coverage               ?   64.64%           
==============================================
  Files                  ?      127           
  Lines                  ?    16612           
  Branches               ?        0           
==============================================
  Hits                   ?    10738           
  Misses                 ?     5874           
  Partials               ?        0           
Flag Coverage Δ
v2 64.64% <100.00%> (?)

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.

@akash-osec
akash-osec force-pushed the fix/v2-cpi-guard-return-error branch from 6321206 to ef29f12 Compare August 13, 2026 12:49
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.

3 participants