Skip to content

feat(tempo): t3 hardfork support for getRemainingLimit#4457

Merged
jxom merged 1 commit intomainfrom
jxom/tempo-t3-hardfork
Apr 4, 2026
Merged

feat(tempo): t3 hardfork support for getRemainingLimit#4457
jxom merged 1 commit intomainfrom
jxom/tempo-t3-hardfork

Conversation

@jxom
Copy link
Copy Markdown
Member

@jxom jxom commented Apr 4, 2026

Summary

  • Added Hardfork module with ordered hardfork list and lt() comparator
  • Added hardfork option to tempo chain config schema
  • getRemainingLimit now uses getRemainingLimitWithPeriod on T3+ chains, falls back to legacy getRemainingLimit on pre-T3
  • Returns { remaining, periodEnd } object (periodEnd is undefined for pre-T3)
  • Added getRemainingLimitWithPeriod ABI entry
  • Set hardfork: 't3' on tempoLocalnet and tempoDevnet chain definitions

Fixes ContractFunctionExecutionError: UnknownFunctionSelector when calling getRemainingLimit on T3 chains.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 4, 2026

🦋 Changeset detected

Latest commit: f5d74a7

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

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 4, 2026

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

Project Deployment Actions Updated (UTC)
viem Building Building Preview, Comment Apr 4, 2026 2:45am

Request Review

@jxom jxom merged commit 39d42e5 into main Apr 4, 2026
23 of 27 checks passed
@jxom jxom deleted the jxom/tempo-t3-hardfork branch April 4, 2026 02:46
@github-actions github-actions bot mentioned this pull request Apr 4, 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.

1 participant