Skip to content

fix(safe-tx): typecheck errors blocking webapp build#9

Merged
Wieedze merged 1 commit intomainfrom
fix/typecheck-after-merge
Apr 28, 2026
Merged

fix(safe-tx): typecheck errors blocking webapp build#9
Wieedze merged 1 commit intomainfrom
fix/typecheck-after-merge

Conversation

@Wieedze
Copy link
Copy Markdown
Owner

@Wieedze Wieedze commented Apr 28, 2026

Two strict-mode TS errors surfaced by webapp Pages build after merge — see commit body for details.

Two strict-mode TS errors surfaced by the webapp's Pages build job
after the merge to main:

1. direct-sign.ts: encodeFunctionData was imported but never used —
   executeSafeTx routes through walletClient.writeContract which
   handles the encoding internally. tsconfig has noUnusedLocals so
   the import blocked the build.

2. usePendingSafeTxs.ts (in webapp) imported StsTxRecord directly
   from @intuition-fee-proxy/safe-tx but the type only existed under
   the namespaced `modes` export. Re-exports StsTxRecord (and the
   other api-kit types — ApiKitClient, ApiKitClientOptions,
   StsConfirmation) at the top level so consumers can import them
   ergonomically.

Both fixes are no-runtime-impact — pure import / re-export plumbing.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Wieedze Wieedze merged commit 554f7de into main Apr 28, 2026
1 check passed
@Wieedze Wieedze deleted the fix/typecheck-after-merge branch April 28, 2026 10:04
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