Skip to content

Commit

Permalink
refactor(protocol): remove uncessary init2() from TaikoL2 (#17973)
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik authored Aug 26, 2024
1 parent 9274f2d commit 4e08881
Showing 1 changed file with 0 additions and 11 deletions.
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

0 comments on commit 4e08881

Please sign in to comment.