Skip to content

Commit 77a1919

Browse files
authored
chore: Named imports (#659)
1 parent 02537e1 commit 77a1919

10 files changed

+10
-10
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ forge install foundry-rs/forge-std
1313
## Contracts
1414
### stdError
1515

16-
This is a helper contract for errors and reverts. In Forge, this contract is particularly helpful for the `expectRevert` cheatcode, as it provides all compiler builtin errors.
16+
This is a helper contract for errors and reverts. In Forge, this contract is particularly helpful for the `expectRevert` cheatcode, as it provides all compiler built-in errors.
1717

1818
See the contract itself for all error codes.
1919

Diff for: src/interfaces/IERC1155.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: MIT
22
pragma solidity >=0.6.2;
33

4-
import "./IERC165.sol";
4+
import {IERC165} from "./IERC165.sol";
55

66
/// @title ERC-1155 Multi Token Standard
77
/// @dev See https://eips.ethereum.org/EIPS/eip-1155

Diff for: src/interfaces/IERC4626.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: MIT
22
pragma solidity >=0.6.2;
33

4-
import "./IERC20.sol";
4+
import {IERC20} from "./IERC20.sol";
55

66
/// @dev Interface of the ERC4626 "Tokenized Vault Standard", as defined in
77
/// https://eips.ethereum.org/EIPS/eip-4626

Diff for: src/interfaces/IERC721.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: MIT
22
pragma solidity >=0.6.2;
33

4-
import "./IERC165.sol";
4+
import {IERC165} from "./IERC165.sol";
55

66
/// @title ERC-721 Non-Fungible Token Standard
77
/// @dev See https://eips.ethereum.org/EIPS/eip-721

Diff for: src/interfaces/IERC7540.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: MIT
22
pragma solidity >=0.6.2;
33

4-
import "./IERC7575.sol";
4+
import {IERC7575} from "./IERC7575.sol";
55

66
/// @dev Interface of the base operator logic of ERC7540, as defined in
77
/// https://eips.ethereum.org/EIPS/eip-7540

Diff for: src/interfaces/IERC7575.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: MIT
22
pragma solidity >=0.6.2;
33

4-
import "./IERC165.sol";
4+
import {IERC165} from "./IERC165.sol";
55

66
/// @dev Interface of the ERC7575 "Multi-Asset ERC-4626 Vaults", as defined in
77
/// https://eips.ethereum.org/EIPS/eip-7575

Diff for: test/compilation/CompilationScript.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pragma solidity >=0.6.2 <0.9.0;
33

44
pragma experimental ABIEncoderV2;
55

6-
import "../../src/Script.sol";
6+
import {Script} from "../../src/Script.sol";
77

88
// The purpose of this contract is to benchmark compilation time to avoid accidentally introducing
99
// a change that results in very long compilation times with via-ir. See https://github.com/foundry-rs/forge-std/issues/207

Diff for: test/compilation/CompilationScriptBase.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pragma solidity >=0.6.2 <0.9.0;
33

44
pragma experimental ABIEncoderV2;
55

6-
import "../../src/Script.sol";
6+
import {ScriptBase} from "../../src/Script.sol";
77

88
// The purpose of this contract is to benchmark compilation time to avoid accidentally introducing
99
// a change that results in very long compilation times with via-ir. See https://github.com/foundry-rs/forge-std/issues/207

Diff for: test/compilation/CompilationTest.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pragma solidity >=0.6.2 <0.9.0;
33

44
pragma experimental ABIEncoderV2;
55

6-
import "../../src/Test.sol";
6+
import {Test} from "../../src/Test.sol";
77

88
// The purpose of this contract is to benchmark compilation time to avoid accidentally introducing
99
// a change that results in very long compilation times with via-ir. See https://github.com/foundry-rs/forge-std/issues/207

Diff for: test/compilation/CompilationTestBase.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pragma solidity >=0.6.2 <0.9.0;
33

44
pragma experimental ABIEncoderV2;
55

6-
import "../../src/Test.sol";
6+
import {TestBase} from "../../src/Test.sol";
77

88
// The purpose of this contract is to benchmark compilation time to avoid accidentally introducing
99
// a change that results in very long compilation times with via-ir. See https://github.com/foundry-rs/forge-std/issues/207

0 commit comments

Comments
 (0)