Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
fmt and temporary zksync-web3 yarn dep
Browse files Browse the repository at this point in the history
  • Loading branch information
kelemeno committed Nov 28, 2023
1 parent c279e80 commit 204b1e7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion contracts/L2EthToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ contract L2EthToken is IEthToken, ISystemContract {
address _sender,
bytes memory _additionalData
) internal pure returns (bytes memory) {
return abi.encodePacked(IBridgehubMailbox.finalizeEthWithdrawal.selector, _to, _amount, _sender, _additionalData);
return
abi.encodePacked(IBridgehubMailbox.finalizeEthWithdrawal.selector, _to, _amount, _sender, _additionalData);
}

/// @dev This method has not been stabilized and might be
Expand Down
6 changes: 3 additions & 3 deletions contracts/SystemContext.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {ISystemContext} from "./interfaces/ISystemContext.sol";
import {ISystemContract} from "./interfaces/ISystemContract.sol";
import {ISystemContextDeprecated} from "./interfaces/ISystemContextDeprecated.sol";
import {SystemContractHelper} from "./libraries/SystemContractHelper.sol";
import {BOOTLOADER_FORMAL_ADDRESS, SystemLogKey} from "./Constants.sol";
import {BOOTLOADER_FORMAL_ADDRESS, SystemLogKey} from "./Constants.sol";

/**
* @author Matter Labs
Expand All @@ -15,7 +15,6 @@ import {BOOTLOADER_FORMAL_ADDRESS, SystemLogKey} from "./Constants.sol";
* block-scoped, tx-scoped or system-wide.
*/
contract SystemContext is ISystemContext, ISystemContextDeprecated, ISystemContract {

/// @notice The number of latest L2 blocks to store.
/// @dev EVM requires us to be able to query the hashes of previous 256 blocks.
/// We could either:
Expand Down Expand Up @@ -82,9 +81,10 @@ contract SystemContext is ISystemContext, ISystemContextDeprecated, ISystemContr

/// @notice Set the chainId origin.
/// @param _newChainId The chainId
function setChainId(uint256 _newChainId) external onlyCallFromBootloader{
function setChainId(uint256 _newChainId) external onlyCallFromBootloader {
chainId = _newChainId;
}

/// @notice Number of current transaction in block.
uint16 public txNumberInBlock;

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IBridgehubMailbox.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity 0.8.20;

interface IBridgehubMailbox {
function finalizeEthWithdrawal(
uint256 _chainId,
uint256 _chainId,
uint256 _l2BlockNumber,
uint256 _l2MessageIndex,
uint16 _l2TxNumberInBlock,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"ethers": "^5.7.0",
"hardhat": "=2.16.0",
"preprocess": "^3.2.0",
"zksync-web3": "^0.14.3"
"zksync-web3": "file:../../../zksync2-js"
},
"devDependencies": {
"@matterlabs/eslint-config-typescript": "^1.1.2",
Expand Down

0 comments on commit 204b1e7

Please sign in to comment.