diff --git a/bootloader/bootloader.yul b/bootloader/bootloader.yul index 5a579a5..432f295 100644 --- a/bootloader/bootloader.yul +++ b/bootloader/bootloader.yul @@ -638,6 +638,8 @@ object "Bootloader" { } } + /// @dev The function that is temporarily needed to upgrade the Keccak256 precompile. This function and `ContractDeployer:forceDeployKeccak256` + /// are to be removed once the upgrade is complete. /// @dev Checks whether the code hash of the Keccak256 precompile contract is correct and updates it if needed. /// @dev When we upgrade to the new version of the Keccak256 precompile contract, the keccak precompile will not work correctly /// and so the upgrade it should be done before any `keccak` calls. diff --git a/contracts/ContractDeployer.sol b/contracts/ContractDeployer.sol index 962aade..9f2da95 100644 --- a/contracts/ContractDeployer.sol +++ b/contracts/ContractDeployer.sol @@ -230,11 +230,11 @@ contract ContractDeployer is IContractDeployer, ISystemContract { ); } - /// @notice The method that is temporarily needed to upgrade the Keccak256 precompile. It is to be removed in the - /// future. Unlike a normal forced deployment, it does not update account information as it requires updating a - /// mapping, and so requires Keccak256 precompile to work already. - /// @dev This method expects the sender (FORCE_DEPLOYER) to provide the correct bytecode hash for the Keccak256 - /// precompile. + /// @notice The method that is temporarily needed to upgrade the Keccak256 precompile. This function and `Bootloader:upgradeKeccakIfNeeded` + /// are to be removed once the upgrade is complete. Unlike a normal forced deployment, it does not update account information as it requires + /// updating a mapping, and so requires Keccak256 precompile to work already. + /// @dev This method expects the sender (FORCE_DEPLOYER) to provide the correct bytecode hash for the Keccak256 + /// precompile. function forceDeployKeccak256(bytes32 _keccak256BytecodeHash) external payable onlyCallFrom(FORCE_DEPLOYER) { _ensureBytecodeIsKnown(_keccak256BytecodeHash);