Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(protocol): remove uncessary init2() from TaikoL2 #17973

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions packages/protocol/contracts/L2/TaikoL2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,6 @@ contract TaikoL2 is EssentialContract {
(publicInputHash,) = _calcPublicInputHash(block.number);
}

/// @dev Reinitialize some state variables.
/// We may want to init the basefee to a default value using one of the following values.
/// - _initialGasExcess = 274*5_000_000 => basefee =0.01 gwei
/// - _initialGasExcess = 282*5_000_000 => basefee =0.05 gwei
/// - _initialGasExcess = 288*5_000_000 => basefee =0.1 gwei
function init2(uint64 _initialGasExcess) external onlyOwner reinitializer(2) {
parentGasExcess = _initialGasExcess;
parentTimestamp = uint64(block.timestamp);
parentGasTarget = 0;
}

/// @notice Anchors the latest L1 block details to L2 for cross-layer
/// message verification.
/// @dev This function can be called freely as the golden touch private key is publicly known,
Expand Down
Loading