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

Remove unexplicit imports #100

Open
wants to merge 1 commit into
base: sb-short-term-fee-model
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions contracts/BootloaderUtilities.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

pragma solidity 0.8.20;

import "./interfaces/IBootloaderUtilities.sol";
import "./libraries/TransactionHelper.sol";
import "./libraries/RLPEncoder.sol";
import "./libraries/EfficientCall.sol";
import {IBootloaderUtilities} from "./interfaces/IBootloaderUtilities.sol";
import {Transaction, TransactionHelper, EIP_712_TX_TYPE, LEGACY_TX_TYPE, EIP_2930_TX_TYPE, EIP_1559_TX_TYPE} from "./libraries/TransactionHelper.sol";
import {RLPEncoder} from "./libraries/RLPEncoder.sol";
import {EfficientCall} from "./libraries/EfficientCall.sol";

/**
* @author Matter Labs
Expand Down Expand Up @@ -34,7 +34,7 @@
} else if (_transaction.txType == EIP_2930_TX_TYPE) {
txHash = encodeEIP2930TransactionHash(_transaction);
} else {
revert("Unsupported tx type");

Check warning on line 37 in contracts/BootloaderUtilities.sol

View workflow job for this annotation

GitHub Actions / lint

Use Custom Errors instead of revert statements
}
}

Expand Down Expand Up @@ -89,7 +89,7 @@
bytes memory vEncoded;
{
uint256 vInt = uint256(uint8(_transaction.signature[64]));
require(vInt == 27 || vInt == 28, "Invalid v value");

Check warning on line 92 in contracts/BootloaderUtilities.sol

View workflow job for this annotation

GitHub Actions / lint

Use Custom Errors instead of require statements

// If the `chainId` is specified in the transaction, then the `v` value is encoded as
// `35 + y + 2 * chainId == vInt + 8 + 2 * chainId`, where y - parity bit (see EIP-155).
Expand Down Expand Up @@ -188,7 +188,7 @@
bytes memory vEncoded;
{
uint256 vInt = uint256(uint8(_transaction.signature[64]));
require(vInt == 27 || vInt == 28, "Invalid v value");

Check warning on line 191 in contracts/BootloaderUtilities.sol

View workflow job for this annotation

GitHub Actions / lint

Use Custom Errors instead of require statements

vEncoded = RLPEncoder.encodeUint256(vInt - 27);
}
Expand Down Expand Up @@ -283,7 +283,7 @@
bytes memory vEncoded;
{
uint256 vInt = uint256(uint8(_transaction.signature[64]));
require(vInt == 27 || vInt == 28, "Invalid v value");

Check warning on line 286 in contracts/BootloaderUtilities.sol

View workflow job for this annotation

GitHub Actions / lint

Use Custom Errors instead of require statements

vEncoded = RLPEncoder.encodeUint256(vInt - 27);
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/ImmutableSimulator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pragma solidity 0.8.20;

import "./interfaces/IImmutableSimulator.sol";
import {IImmutableSimulator, ImmutableData} from "./interfaces/IImmutableSimulator.sol";
import {DEPLOYER_SYSTEM_CONTRACT} from "./Constants.sol";

/**
Expand Down
6 changes: 3 additions & 3 deletions contracts/MsgValueSimulator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

pragma solidity 0.8.20;

import "./libraries/Utils.sol";
import "./libraries/EfficientCall.sol";
import "./interfaces/ISystemContract.sol";
import {Utils} from "./libraries/Utils.sol";
import {EfficientCall} from "./libraries/EfficientCall.sol";
import {ISystemContract} from "./interfaces/ISystemContract.sol";
import {SystemContractHelper} from "./libraries/SystemContractHelper.sol";
import {MSG_VALUE_SIMULATOR_IS_SYSTEM_BIT, ETH_TOKEN_SYSTEM_CONTRACT} from "./Constants.sol";

Expand Down
4 changes: 2 additions & 2 deletions contracts/NonceHolder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

pragma solidity 0.8.20;

import "./interfaces/INonceHolder.sol";
import "./interfaces/IContractDeployer.sol";
import {INonceHolder} from "./interfaces/INonceHolder.sol";
import {IContractDeployer} from "./interfaces/IContractDeployer.sol";
import {ISystemContract} from "./interfaces/ISystemContract.sol";
import {DEPLOYER_SYSTEM_CONTRACT} from "./Constants.sol";

Expand Down
Loading