Commit 4a3ac7b
committed
fix(svm): Token-2022 post-settlement fallback, sigVerify alignment, tests
Address review feedback from notorious-d-e-v (second review, Mar 23):
Token-2022 post-settlement fallback:
- Balance-delta fallback now derives ATAs for both SPL Token and Token-2022
- scheme.ts captures balanceBefore from whichever token program has a live ATA
- Passes token program hint to verifyPostSettlement for optimized lookup
- When all balance checks throw, correctly returns "unverified" not "balanceDelta"
sigVerify/replaceRecentBlockhash alignment:
- Changed smart wallet simulation from sigVerify:false/replaceRecentBlockhash:true
to sigVerify:true/replaceRecentBlockhash:false, matching existing Path 1 behavior
- Closes forged-signature attack vector identified in review
- Correct for future durable nonce support per RFC #646
Tests:
- Token-2022 fallback when SPL Token ATA shows no delta
- Hinted token program optimization in balance fallback1 parent 5edb20b commit 4a3ac7b
61 files changed
Lines changed: 236978 additions & 27 deletions
File tree
- e2e
- clients
- axios
- fetch
- facilitators/typescript
- legacy
- clients
- axios
- fetch
- servers
- express
- hono
- next
- servers
- express
- hono
- next
- templates/server-ts
- examples/typescript
- clients
- advanced
- axios
- custom
- fetch
- mcp
- facilitator
- fullstack
- miniapp
- next
- legacy
- agent
- clients
- axios
- cdp-sdk
- chainlink-vrf-nft
- fetch
- dynamic_agent
- facilitator
- fullstack
- auth_based_pricing
- browser-wallet-example
- farcaster-miniapp
- next-advanced
- next
- mcp
- servers
- advanced
- express
- hono
- servers
- advanced
- cloudfront-lambda-edge
- lambda
- custom
- express
- hono
- typescript/packages
- core
- http
- axios
- express
- fetch
- hono
- next
- paywall
- legacy
- x402-axios
- x402-express
- x402-fetch
- x402-hono
- x402-next
- x402
- mechanisms
- evm
- svm
- src
- exact/facilitator
- test/unit
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments