Skip to content

fix(svm): preserve event log indices - #1490

Draft
md0x wants to merge 1 commit into
masterfrom
pablo/fix-svm-event-ordinal
Draft

fix(svm): preserve event log indices#1490
md0x wants to merge 1 commit into
masterfrom
pablo/fix-svm-event-ordinal

Conversation

@md0x

@md0x md0x commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Assign each decoded SVM event its deterministic inner-instruction ordinal and propagate it as logIndex through event clients and helpers. This prevents multiple same-type events in one transaction from colliding during downstream deduplication while retaining compatibility with custom clients that omit the new metadata.

Test plan

  • yarn hardhat test test/Solana.SvmCpiEventsClient.ForgedEvent.unit.test.ts test/SvmSpokePoolClient.ts
  • yarn build:types
  • Targeted ESLint and Prettier checks

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