Skip to content

fix: Tempo deploy script compilation and stale foundry.lock - #492

Open
gretzke wants to merge 1 commit into
mainfrom
fix/tempo-deploy-params-foundry-lock
Open

fix: Tempo deploy script compilation and stale foundry.lock#492
gretzke wants to merge 1 commit into
mainfrom
fix/tempo-deploy-params-foundry-lock

Conversation

@gretzke

@gretzke gretzke commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

A clean checkout of main currently fails forge build. DeployTempo.s.sol was added in #478 but written against the RouterParameters struct from before #476, which added the permissionsAdapterFactory field, so the struct constructor in the Tempo deployer is one argument short. I added the missing field as address(0), the same way the fix that's sitting on feat/v4-swap-within-unlock-hardened does it.

While debugging this I also noticed foundry.lock was left stale by #476: it still pins forge-std at v1.5.5 (73d44ec) and v4-periphery at 9dafaae, while the git submodule pointers were bumped to v1.9.6 (3b20d60) and the Permissioned Pools commit (363226d). That makes forge print revision mismatch warnings on every build. I synced the two rev entries to the committed submodule revisions; 363226d is on v4-periphery main, so the branch pairing in the lock stays valid.

With both changes, forge build on a fresh checkout compiles with no errors and no dependency warnings.

AI-Generated Description

Summary

Fixes two issues that cause forge build to fail or emit warnings on a fresh checkout of main.

Changes

  • DeployTempo.s.sol: Add missing permissionsAdapterFactory: address(0) field to the RouterParameters struct constructor, aligning it with the field added in refactor(v4-swap-router): inherit PermissionedV4Router from v4-periphery #476
  • foundry.lock: Update forge-std rev (73d44ec3b20d60) and v4-periphery rev (9dafaae363226d) to match the committed submodule pointers, eliminating revision-mismatch warnings

Notes

  • permissionsAdapterFactory is set to address(0), which disables permissioned pools — consistent with the pattern used in other deploy scripts
  • Both stale entries were left behind by refactor(v4-swap-router): inherit PermissionedV4Router from v4-periphery #476 when it bumped the git submodules without updating the lock file
  • With both fixes applied, forge build compiles cleanly on a fresh clone with no errors or dependency warnings

… sync foundry.lock

DeployTempo.s.sol was added in #478 against the pre-#476 RouterParameters
struct, so a clean checkout of main fails to compile with a struct
constructor argument count error. I added the missing
permissionsAdapterFactory field as address(0), matching the other
deployers that don't have a factory yet.

foundry.lock was also left stale by #476: it still pinned forge-std at
v1.5.5 and v4-periphery at a pre-Permissioned-Pools commit while the git
submodule pointers were bumped. I synced the two rev entries to the
committed submodule revisions, which removes the revision mismatch
warnings on every forge build.
@gretzke
gretzke requested a review from a team as a code owner July 14, 2026 21:54
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