Skip to content

fix(l2genesis): correct WETH initialization docs in setWETH()#369

Open
dev-khimesh wants to merge 1 commit into
base:mainfrom
dev-khimesh:fix/l2genesis-weth-init-357
Open

fix(l2genesis): correct WETH initialization docs in setWETH()#369
dev-khimesh wants to merge 1 commit into
base:mainfrom
dev-khimesh:fix/l2genesis-weth-init-357

Conversation

@dev-khimesh

Copy link
Copy Markdown

Description

Updates the NatSpec comment on setWETH() in L2Genesis.s.sol to accurately reflect that WETH98 uses constants and pure functions for name/symbol/decimals, so there are no constructor-side effects to reinitialize via vm.store. The contract follows safety invariant #1 as there are no immutables or constructor-side effects.

Changes

  • Updated setWETH() comment to reflect actual contract behavior
  • Clarified that WETH98 storage slots (_balanceOf, _allowance) are mappings that correctly start empty

Closes #357

Updates NatSpec comment on setWETH() to accurately reflect WETH98 uses constants and pure functions with no constructor-side effects. Closes base#357.
@cb-heimdall

Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

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.

Lumi Security Audit: Security Feedback for L2Genesis.s.sol

2 participants