Skip to content

fix: reject non-USDC x402 payment challenges#6

Open
scosemicolon wants to merge 1 commit into
vybenetwork:mainfrom
scosemicolon:sam/trust-policy-pin-usdc-asset
Open

fix: reject non-USDC x402 payment challenges#6
scosemicolon wants to merge 1 commit into
vybenetwork:mainfrom
scosemicolon:sam/trust-policy-pin-usdc-asset

Conversation

@scosemicolon

Copy link
Copy Markdown

Summary

  • reject x402 SVM payment challenges whose asset is not the Solana USDC mint
  • preserve the new asset_mismatch trust-policy reason through the wrapped @x402/fetch error message
  • add a regression test for non-USDC challenge rejection

Verification

  • git diff --check -- src/http.ts src/errors.ts tests/trust-policy.test.ts

I did not run the full Vitest suite locally because this shallow inspection clone has no installed dependencies, and I did not install packages.

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.

1 participant