Skip to content

refactor(cast): fold run_tempo_keychain into run_generic as AccessKey case#14137

Merged
zerosnacks merged 3 commits into
foundry-rs:masterfrom
mablr:refactor/cast_send_access_key_run_generic
Apr 7, 2026
Merged

refactor(cast): fold run_tempo_keychain into run_generic as AccessKey case#14137
zerosnacks merged 3 commits into
foundry-rs:masterfrom
mablr:refactor/cast_send_access_key_run_generic

Conversation

@mablr
Copy link
Copy Markdown
Collaborator

@mablr mablr commented Apr 4, 2026

Motivation

Leverage new FoundryTransactionBuilder methods introduced in #14120 (stacked on top) to remove standalone run_tempo_keychain method and handle Tempo access key signing as Case 3 inside run_generic::<TempoNetwork>.

  • run_generic now accepts access_key: Option<TempoAccessKeyConfig>
  • run() routes both keychain and non-keychain Tempo flows through run_generic::<TempoNetwork>, eliminating the early dispatch branch
  • key_id is injected into tx.tempo before builder construction so gas estimation sees the correct access key address
  • Keychain signing uses FoundryTransactionBuilder::sign_with_access_key_provisioning, which encapsulates the provisioning check and key_authorization embedding that were previously done manually in run_tempo_keychain

mablr added 2 commits April 4, 2026 18:36
…s-key case

Delete the standalone `run_tempo_keychain` method and handle Tempo
access key signing as Case 3 inside `run_generic::<TempoNetwork>`.

- `run_generic` now accepts `access_key: Option<TempoAccessKeyConfig>`
- `run()` routes both keychain and non-keychain Tempo flows through
  `run_generic::<TempoNetwork>`, eliminating the early dispatch branch
- `key_id` is injected into `tx.tempo` before builder construction so
  gas estimation sees the correct access key address
- Keychain signing uses `sign_with_access_key_provisioning`, which
  encapsulates the provisioning check and `key_authorization` embedding
  that were previously done manually in `run_tempo_keychain`
@mablr mablr marked this pull request as ready for review April 7, 2026 07:33
@zerosnacks zerosnacks merged commit 9f23fa8 into foundry-rs:master Apr 7, 2026
15 checks passed
@github-project-automation github-project-automation Bot moved this to Done in Foundry Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants