From 4e0888190e172c950dc5e81a5115ee0fb6df3f11 Mon Sep 17 00:00:00 2001 From: Daniel Wang <99078276+dantaik@users.noreply.github.com> Date: Mon, 26 Aug 2024 13:14:07 +0800 Subject: [PATCH] refactor(protocol): remove uncessary init2() from TaikoL2 (#17973) --- packages/protocol/contracts/L2/TaikoL2.sol | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/protocol/contracts/L2/TaikoL2.sol b/packages/protocol/contracts/L2/TaikoL2.sol index 73d2a0264d3..498cf07143b 100644 --- a/packages/protocol/contracts/L2/TaikoL2.sol +++ b/packages/protocol/contracts/L2/TaikoL2.sol @@ -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,