Skip to content

refactor: deduplicate tx request preparation - #727

Open
alxdca wants to merge 2 commits into
mainfrom
refactor/dedup-request-preparation
Open

refactor: deduplicate tx request preparation#727
alxdca wants to merge 2 commits into
mainfrom
refactor/dedup-request-preparation

Conversation

@alxdca

@alxdca alxdca commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add shared contract transaction request helpers in src/contractTransactionRequests.ts.
  • Replace repeated encode/upgrade-executor/prepare-transaction request logic across owner, sequencer inbox, rollup admin, aggregator, and action builders.

Why / Context

  • Several transaction request builders were manually repeating the same flow: encode contract call data, optionally wrap it through the upgrade executor, prepare the transaction request, and return the request with chainId.
  • Centralizing that flow reduces duplicated implementation code while keeping call-specific ABI, target address, account, gas, and upgrade executor parameters explicit at each call site.

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