Skip to content

Commit

Permalink
resolve nit
Browse files Browse the repository at this point in the history
  • Loading branch information
StanislavBreadless committed May 24, 2024
1 parent 25d90f9 commit 9647526
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions l1-contracts/contracts/upgrades/BaseZkSyncUpgrade.sol
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ abstract contract BaseZkSyncUpgrade is ZkSyncHyperchainBase {

/// @notice Change default account bytecode hash, that is used on L2
/// @param _l2DefaultAccountBytecodeHash The hash of default account L2 bytecode
/// @param _patchOnly Whether the patch part of the protocol version semver has changed
/// @param _patchOnly Whether only the patch part of the protocol version semver has changed
function _setL2DefaultAccountBytecodeHash(bytes32 _l2DefaultAccountBytecodeHash, bool _patchOnly) private {
if (_l2DefaultAccountBytecodeHash == bytes32(0)) {
return;
Expand All @@ -112,7 +112,7 @@ abstract contract BaseZkSyncUpgrade is ZkSyncHyperchainBase {

/// @notice Change bootloader bytecode hash, that is used on L2
/// @param _l2BootloaderBytecodeHash The hash of bootloader L2 bytecode
/// @param _patchOnly Whether the patch part of the protocol version semver has changed
/// @param _patchOnly Whether only the patch part of the protocol version semver has changed
function _setL2BootloaderBytecodeHash(bytes32 _l2BootloaderBytecodeHash, bool _patchOnly) private {
if (_l2BootloaderBytecodeHash == bytes32(0)) {
return;
Expand Down Expand Up @@ -177,6 +177,7 @@ abstract contract BaseZkSyncUpgrade is ZkSyncHyperchainBase {
/// @notice Updates the bootloader hash and the hash of the default account
/// @param _bootloaderHash The hash of the new bootloader bytecode. If zero, it will not be updated.
/// @param _defaultAccountHash The hash of the new default account bytecode. If zero, it will not be updated.
/// @param _patchOnly Whether only the patch part of the protocol version semver has changed.
function _setBaseSystemContracts(bytes32 _bootloaderHash, bytes32 _defaultAccountHash, bool _patchOnly) internal {
_setL2BootloaderBytecodeHash(_bootloaderHash, _patchOnly);
_setL2DefaultAccountBytecodeHash(_defaultAccountHash, _patchOnly);
Expand All @@ -188,7 +189,7 @@ abstract contract BaseZkSyncUpgrade is ZkSyncHyperchainBase {
/// @param _factoryDeps The factory dependencies that are used by the transaction.
/// @param _newMinorProtocolVersion The new minor protocol version. It must be used as the `nonce` field
/// of the `_l2ProtocolUpgradeTx`.
/// @param _patchOnly Whether the patch part of the protocol version semver has changed.
/// @param _patchOnly Whether only the patch part of the protocol version semver has changed.
/// @return System contracts upgrade transaction hash. Zero if no upgrade transaction is set.
function _setL2SystemContractUpgrade(
L2CanonicalTransaction calldata _l2ProtocolUpgradeTx,
Expand Down

0 comments on commit 9647526

Please sign in to comment.