Skip to content

fix: 🐛 handle chain 8.0.0 VenueSignersUpdated shape and index InstructionUnlocked - #341

Merged
polymesh-bot merged 1 commit into
alphafrom
fix/chain-v8-venue-signers-and-unlock
Aug 24, 2026
Merged

fix: 🐛 handle chain 8.0.0 VenueSignersUpdated shape and index InstructionUnlocked#341
polymesh-bot merged 1 commit into
alphafrom
fix/chain-v8-venue-signers-and-unlock

Conversation

@prashantasdeveloper

Copy link
Copy Markdown
Contributor

Description

VenueSignersUpdated's signers field changed from Vec<AccountId> to BTreeSet<AccountId> on chain 8.0.0. BTreeSet extends the native Set, which has no .map, so handleVenueSignersUpdated threw TypeError: o.map is not a function on every such event and permanently stalled the indexer. Array.from handles both shapes uniformly.

settlement.InstructionUnlocked was never registered as a handled event, so the indexed Instruction status stayed LockedForExecution forever after an unlock, even though the on-chain status correctly reverted to Pending. Wires it up to the existing InstructionLocked/Executed/Failed handler (same event shape) and maps it to the Created status, which is what the SDK reads back as Pending. Adds the InstructionUnlocked value to InstructionEventEnum and its DB enum migration so it can be logged as an InstructionEvent.

Breaking Changes

JIRA Link

Checklist

  • Updated the Readme.md (if required) ?

…tionUnlocked

VenueSignersUpdated's `signers` field changed from `Vec<AccountId>` to
`BTreeSet<AccountId>` on chain 8.0.0. BTreeSet extends the native Set, which
has no `.map`, so handleVenueSignersUpdated threw `TypeError: o.map is not a
function` on every such event and permanently stalled the indexer. Array.from
handles both shapes uniformly.

settlement.InstructionUnlocked was never registered as a handled event, so the
indexed Instruction status stayed LockedForExecution forever after an unlock,
even though the on-chain status correctly reverted to Pending. Wires it up to
the existing InstructionLocked/Executed/Failed handler (same event shape) and
maps it to the Created status, which is what the SDK reads back as Pending.
Adds the InstructionUnlocked value to InstructionEventEnum and its DB enum
migration so it can be logged as an InstructionEvent.
@prashantasdeveloper
prashantasdeveloper requested a review from a team as a code owner August 24, 2026 12:52
@sonarqubecloud

Copy link
Copy Markdown

@prashantasdeveloper

Copy link
Copy Markdown
Contributor Author

/fast-forward

@polymesh-bot
polymesh-bot merged commit 8d25de3 into alpha Aug 24, 2026
8 checks passed
@polymesh-bot
polymesh-bot deleted the fix/chain-v8-venue-signers-and-unlock branch August 24, 2026 15:49
@polymesh-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 19.7.0-alpha.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants