Skip to content

Conversation

@tejasbadadare
Copy link
Contributor

Summary

Only split the VAA when building the postUpdate instructions if it's necessary (if vaa length > VAA_SPLIT_INDEX.) Otherwise, the second WriteEncodedVAA instruction will contain empty data, causing a revert. This happens with Pythtest VAAs, which are smaller than the split index.

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

@tejasbadadare tejasbadadare requested a review from a team as a code owner July 21, 2025 19:59
@vercel
Copy link

vercel bot commented Jul 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 21, 2025 8:01pm
7 Skipped Deployments
Name Status Preview Comments Updated (UTC)
api-reference ⬜️ Skipped (Inspect) Jul 21, 2025 8:01pm
component-library ⬜️ Skipped (Inspect) Jul 21, 2025 8:01pm
developer-hub ⬜️ Skipped (Inspect) Jul 21, 2025 8:01pm
entropy-debugger ⬜️ Skipped (Inspect) Jul 21, 2025 8:01pm
entropy-explorer ⬜️ Skipped (Inspect) Jul 21, 2025 8:01pm
insights ⬜️ Skipped (Inspect) Jul 21, 2025 8:01pm
staking ⬜️ Skipped (Inspect) Jul 21, 2025 8:01pm

@guibescos guibescos merged commit fb000d4 into main Jul 21, 2025
11 of 12 checks passed
@guibescos guibescos deleted the tb/pyth-solana-receiver/fix-vaa-split-bug branch July 21, 2025 21:02
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