Skip to content

fix: reject empty challenge ids#570

Open
EfeDurmaz16 wants to merge 1 commit into
wevm:mainfrom
EfeDurmaz16:fix/non-empty-challenge-id
Open

fix: reject empty challenge ids#570
EfeDurmaz16 wants to merge 1 commit into
wevm:mainfrom
EfeDurmaz16:fix/non-empty-challenge-id

Conversation

@EfeDurmaz16

Copy link
Copy Markdown

Summary

  • Rejects empty Payment challenge IDs in the Challenge schema.
  • Preserves explicit id: "" as an invalid explicit ID in fromMethod() instead of falling back to secretKey.
  • Adds coverage for construction, deserialization, and method-based construction.
  • Adds a patch changeset.

This aligns mppx with the spec/conformance tightening discussed in tempoxyz/mpp-tools#19 (comment).

Verification

  • VITE_TEMPO_NETWORK=none pnpm exec vp test --project node src/Challenge.test.ts
  • VITE_TEMPO_NETWORK=none pnpm check:types
  • VITE_TEMPO_NETWORK=none pnpm check:ci

@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!

@pkg-pr-new

pkg-pr-new Bot commented Jun 19, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: e2499b3

@brendanjryan

Copy link
Copy Markdown
Collaborator

@EfeDurmaz16 -- can you sign your commits?

@EfeDurmaz16 EfeDurmaz16 force-pushed the fix/non-empty-challenge-id branch from e2499b3 to ff86589 Compare June 19, 2026 18:14
@EfeDurmaz16

Copy link
Copy Markdown
Author

oops, signed now @brendanjryan !

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