Skip to content

Commit 80e1daf

Browse files
committed
chore(lint): fixing lint errors
1 parent e4eb4aa commit 80e1daf

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

test/HH3Compatibility.t.sol

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ import {Greeter} from "./contracts/Greeter.sol";
99

1010
/**
1111
* @dev Tests to ensure compatibility with Hardhat 3 environment.
12-
*
12+
*
1313
* Hardhat 3 uses:
1414
* - artifacts/contracts/ as the output directory (instead of out/)
1515
* - artifacts/build-info/ for build info files
1616
* - FOUNDRY_OUT environment variable should point to artifacts/contracts
17-
*
17+
*
1818
* This test ensures that the foundry-upgrades library works correctly
1919
* when FOUNDRY_OUT is set to match Hardhat's structure.
20-
*
20+
*
2121
* NOTE: This test MUST be run via scripts/test-hh3-compatibility.sh
2222
* which sets up the HH3 artifacts in the correct location.
2323
*/
@@ -27,7 +27,7 @@ contract HH3CompatibilityTest is Test {
2727

2828
/**
2929
* @dev Test that Utils.getOutDir() respects FOUNDRY_OUT environment variable.
30-
*
30+
*
3131
* NOTE: FOUNDRY_OUT must be set externally via the test script.
3232
* vm.setEnv() does not work for FOUNDRY_* variables as Foundry treats them specially.
3333
*/
@@ -38,7 +38,7 @@ contract HH3CompatibilityTest is Test {
3838

3939
/**
4040
* @dev Test that vm.envOr() fallback works correctly when variable doesn't exist.
41-
*
41+
*
4242
* This validates the fallback mechanism used by Utils.getOutDir().
4343
*/
4444
function testGetOutDir_fallbackToDefault() public {
@@ -49,37 +49,37 @@ contract HH3CompatibilityTest is Test {
4949

5050
/**
5151
* @dev Test that getContractInfo works with HH3 artifact structure.
52-
*
53-
* The HH3 artifact was copied from fixtures by the script and placed
52+
*
53+
* The HH3 artifact was copied from fixtures by the script and placed
5454
* in artifacts/contracts/test/contracts/Greeter.sol/Greeter.json
5555
*/
5656
function testGetContractInfo_withHH3Structure() public {
5757
ContractInfo memory info = Utils.getContractInfo("Greeter.sol", HH3_OUT_DIR);
58-
58+
5959
assertEq(info.shortName, "Greeter", "Contract name should be Greeter");
6060
assertEq(info.contractPath, "test/contracts/Greeter.sol", "Contract path should match");
6161
assertTrue(bytes(info.contractPath).length > 0, "Contract path should not be empty");
6262
}
6363

6464
/**
6565
* @dev Test that getContractInfo works with Foundry's default structure.
66-
*
66+
*
6767
* This validates backward compatibility - the library should still work
6868
* with the standard Foundry output directory structure.
69-
*
69+
*
7070
* NOTE: This test passes the outDir directly, not via Utils.getOutDir(),
7171
* because FOUNDRY_OUT is set to artifacts/contracts by the script.
7272
*/
7373
function testGetContractInfo_withFoundryStructure() public {
7474
ContractInfo memory info = Utils.getContractInfo("Greeter.sol", DEFAULT_OUT_DIR);
75-
75+
7676
assertEq(info.shortName, "Greeter", "Contract name should be Greeter");
7777
assertEq(info.contractPath, "test/contracts/Greeter.sol", "Contract path should match");
7878
}
7979

8080
/**
8181
* @dev Test that FOUNDRY_OUT environment variable can be read via vm.envOr.
82-
*
82+
*
8383
* NOTE: FOUNDRY_OUT must be set externally via the test script.
8484
* vm.setEnv() does not work for FOUNDRY_* variables.
8585
*/

0 commit comments

Comments
 (0)