Skip to content

Fix Phantom wallet signing order for multi-signer transactions#315

Merged
dankelleher merged 1 commit intodevelopfrom
fix/phantom-signing-order-bug
Mar 2, 2026
Merged

Fix Phantom wallet signing order for multi-signer transactions#315
dankelleher merged 1 commit intodevelopfrom
fix/phantom-signing-order-bug

Conversation

@dankelleher
Copy link
Copy Markdown
Member

Phantom's Lighthouse security system requires the wallet to sign transactions before other signers. This fix implements the correct signing order in two places:

  1. SunriseStakeClient.sendAndConfirmTransaction - Added a custom signing path for transactions with additional signers that signs with the wallet first, then adds partial signatures.

  2. withdrawBlaze.ts script - Fixed the signing order in createStakeAccount to match Phantom's requirements.

Also fixed a bug where confirm() was called incorrectly with this.provider instead of this.provider.connection.

Phantom's Lighthouse security system requires the wallet to sign
transactions before other signers. This fix implements the correct
signing order in two places:

1. SunriseStakeClient.sendAndConfirmTransaction - Added a custom
   signing path for transactions with additional signers that signs
   with the wallet first, then adds partial signatures.

2. withdrawBlaze.ts script - Fixed the signing order in
   createStakeAccount to match Phantom's requirements.

Also fixed a bug where confirm() was called incorrectly with
this.provider instead of this.provider.connection.
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app Building Building Preview, Comment Mar 2, 2026 5:35am

Request Review

@dankelleher dankelleher merged commit ed7b0d6 into develop Mar 2, 2026
10 checks passed
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