Skip to content

fix(subscription): repair missing access-key address indexes#673

Open
EfeDurmaz16 wants to merge 1 commit into
wevm:mainfrom
EfeDurmaz16:agent/repair-access-key-index
Open

fix(subscription): repair missing access-key address indexes#673
EfeDurmaz16 wants to merge 1 commit into
wevm:mainfrom
EfeDurmaz16:agent/repair-access-key-index

Conversation

@EfeDurmaz16

Copy link
Copy Markdown
Contributor

What

  • Repair a missing subscription access-key address index whenever an existing primary access-key record is reused.
  • Preserve any existing address index.
  • Add regression coverage and a patch changeset.

Why

getOrCreateAccessKey returned early for an existing primary record. If the subsequent address-index write failed or the index was lost, retries could never heal it, so getAccessKeyByAddress kept returning null.

How

Both existing and newly-created records now pass through one idempotent ensureAccessKeyAddressIndex helper. It only writes when the index is missing.

Verification

  • Subscription store tests: 21/21
  • pnpm check:ci
  • pnpm check:types

@pkg-pr-new

pkg-pr-new Bot commented Jul 20, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/mppx@673

commit: 311f490

@EfeDurmaz16
EfeDurmaz16 marked this pull request as ready for review July 20, 2026 14:26

@brendanjryan brendanjryan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM -- thanks!

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.

2 participants