Skip to content

Sepolia depositadapter initialize onlyowner#1656

Open
Dev-In-Crypt wants to merge 4 commits intolidofinance:masterfrom
Dev-In-Crypt:bugfix/sepolia-depositadapter-initialize-onlyowner
Open

Sepolia depositadapter initialize onlyowner#1656
Dev-In-Crypt wants to merge 4 commits intolidofinance:masterfrom
Dev-In-Crypt:bugfix/sepolia-depositadapter-initialize-onlyowner

Conversation

@Dev-In-Crypt
Copy link
Copy Markdown

Context

SepoliaDepositAdapter is a tooling contract for Sepolia. Its initialize function sets the contract version and transfers ownership, so calling it is a high impact action and must be restricted.

Problem

initialize(address _owner) was externally callable without access control. That allowed anyone to call initialize first and set ownership to an arbitrary address, effectively taking control of the adapter. Even if intended to be called once, the lack of restriction makes initialization raceable and unsafe.

Solution

Add onlyOwner to initialize so only the current owner (deployer/owner) can run initialization and perform the ownership transfer. The existing zero address guard remains unchanged.

@Dev-In-Crypt Dev-In-Crypt requested a review from a team as a code owner February 5, 2026 19:58
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