Skip to content

refactor(conduit): stop naming ProxyInitCode's store address at - #139

Merged
pegahcarter merged 1 commit into
mainfrom
refactor/at-keyword
Nov 11, 2026
Merged

pegahcarter merged 1 commit into
mainfrom
refactor/at-keyword

Conversation

@pegahcarter

Copy link
Copy Markdown
Contributor

What

Renames ProxyInitCode's at identifiers, the return value of store() and the parameter of load(address), to initCodeStore. Conduits.deploy already uses that name for the same address.

Why

solc 0.8.36 warns "at" will be promoted to keyword in the future on lines 26 and 42. ProxyInitCode.sol ships in @crossecute/protocol, so the warning shows up in every project that imports the package with a current compiler. The repo itself builds with 0.8.28, which doesn't warn.

Checked

  • Bytecode: the creation and runtime bytecode of all 114 artifacts compiled from src/ is identical before and after.
  • Warning: under --use 0.8.36, the published 0.1.0 file warns twice and this version doesn't warn.
  • forge fmt --check, forge lint -D notes, and forge lint -D notes under FOUNDRY_PROFILE=lint-src are clean on the file.
  • forge test: 1034 passed, 3 skipped.

Not in this PR

  • Test and deploy-script locals named at (script/deploy/ProxyDeploy.sol, test/Proxy.t.sol, test/Transport.t.sol and others). They don't ship in the package and compile under the pinned 0.8.28.
  • EnumerableSet.at(i) calls, which are OpenZeppelin's API.

solc 0.8.36 warns that `at` will become a keyword, and the file ships in
@crossecute/protocol. Every src artifact's bytecode is unchanged.
@pegahcarter
pegahcarter merged commit 019bbea into main Nov 11, 2026
3 checks passed
@pegahcarter
pegahcarter deleted the refactor/at-keyword branch November 11, 2026 18:47
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