Skip to content

fix: preserve tempo transaction type in prepareTransactionRequest#4612

Merged
jxom merged 1 commit into
wevm:mainfrom
deodad:dad/preserve-tempo-transaction-type
May 17, 2026
Merged

fix: preserve tempo transaction type in prepareTransactionRequest#4612
jxom merged 1 commit into
wevm:mainfrom
deodad:dad/preserve-tempo-transaction-type

Conversation

@deodad
Copy link
Copy Markdown
Contributor

@deodad deodad commented May 14, 2026

Summary

Preserves the literal Tempo transaction type in prepareTransactionRequest return types.

Motivation

prepareTransactionRequest narrowed built-in transaction types, but fell back to the broad chain request union for type: 'tempo'.

Changes

  • Derive the narrowed return branch from FormattedTransactionRequest in src/actions/wallet/prepareTransactionRequest.ts
  • Add a Tempo type regression test in src/tempo/chainConfig.test-d.ts
  • Add a patch changeset

Testing

pnpm exec biome check src/actions/wallet/prepareTransactionRequest.ts src/tempo/chainConfig.test-d.ts
pnpm exec tsc -b test/tsconfig.json
TYPES=true pnpm exec vitest -c ./test/vitest.config.ts --project type-bench src/tempo/chainConfig.bench-d.ts

@vercel
Copy link
Copy Markdown

vercel Bot commented May 14, 2026

@deodad is attempting to deploy a commit to the Wevm Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 14, 2026

🦋 Changeset detected

Latest commit: 5987641

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
viem Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@deodad deodad marked this pull request as ready for review May 14, 2026 15:45
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 14, 2026

Open in StackBlitz

npm i https://pkg.pr.new/viem@4612

commit: 5987641

@deodad deodad force-pushed the dad/preserve-tempo-transaction-type branch from 0d92ee2 to 5987641 Compare May 14, 2026 15:48
@jxom jxom merged commit 552b7f7 into wevm:main May 17, 2026
20 of 28 checks passed
@github-actions github-actions Bot mentioned this pull request May 17, 2026
@tmm tmm mentioned this pull request May 26, 2026
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