Skip to content

fix(deploy): skip phone-event wrap when signer source is 'dev'#105

Merged
EnderOfWorlds007 merged 1 commit into
mainfrom
fix/dev-suri-cosmetic-phone-msg
May 3, 2026
Merged

fix(deploy): skip phone-event wrap when signer source is 'dev'#105
EnderOfWorlds007 merged 1 commit into
mainfrom
fix/dev-suri-cosmetic-phone-msg

Conversation

@EnderOfWorlds007

Copy link
Copy Markdown
Collaborator

Cosmetic UX fix: dot deploy --signer dev --suri X --playground no longer prints "📱 Approve on your phone: Fund contract deploy session key" for the session-key funding step. The dev keypair signs directly in-process, matching the existing approvals-count guard in signerMode.ts:121 which already excludes non-session signers from the phone-tap count.

Three-way branch

  • source === 'session' (real phone): wrap with events, emit lifecycle messages
  • source === 'dev' (local keypair, any --suri): sign directly, no events
  • null (pure dev): pickFunder from dev chain

Closes

The cosmetic half of #94 (the "phone prompt in dev mode" observation). The actual hardhat AccountUnmapped failure remains tracked separately.

Test plan

  • tsc clean
  • format clean (biome: no fixes applied)
  • All 446 unit tests pass across 42 test files
  • New unit test covering the source === 'dev' branch: asserts raw signer identity, zero signing events emitted, pickFunder not called

…session'

For `dot deploy --signer dev --suri X --playground`, the session-key
funding step previously wrapped the SURI signer with `wrapSignerWithEvents`,
emitting a "📱 Approve on your phone" message even though the keypair signs
in-process with no human interaction.

Mirrors the guard already present in signerMode.ts:121 — only emit phone-tap
lifecycle events when `userSigner.source === "session"`. A non-null signer
with `source === "dev"` signs directly; null falls through to pickFunder.
@github-actions

github-actions Bot commented May 3, 2026

Copy link
Copy Markdown
Contributor

Dev build ready — try this branch:

curl -fsSL https://raw.githubusercontent.com/paritytech/playground-cli/main/install.sh | VERSION=dev/fix/dev-suri-cosmetic-phone-msg bash

@github-actions

github-actions Bot commented May 3, 2026

Copy link
Copy Markdown
Contributor

E2E Test Pass · ✅ PASS

Tag: e2e-ci-pr · Branch: fix/dev-suri-cosmetic-phone-msg · Commit: 4412faa · Run logs

Cell Result Time
pr-init-session ✅ PASS 1m22s
pr-deploy-foundry ✅ PASS 1m56s
pr-deploy-frontend ✅ PASS 6m44s
pr-preflight ✅ PASS 3m28s
pr-mod ✅ PASS 1m24s
pr-install ✅ PASS 0m38s
${{ matrix.cell }} ⏭️ SKIP 0m00s
${{ matrix.cell }} ⏭️ SKIP 0m00s

Sentry traces: view spans for this run

@EnderOfWorlds007 EnderOfWorlds007 merged commit 8af7042 into main May 3, 2026
17 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