Skip to content

Commit 46c6d4b

Browse files
authored
Merge pull request #29 from ScopeLift/bump-forgestd-1.11.0
Bump forgestd 1.11.0 & resolve new warnings
1 parent 11e18f0 commit 46c6d4b

4 files changed

Lines changed: 17 additions & 7 deletions

File tree

foundry.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"lib/forge-std": {
3+
"tag": {
4+
"name": "v1.11.0",
5+
"rev": "8e40513d678f392f398620b3ef2b418648b33e89"
6+
}
7+
}
8+
}

script/Deploy.s.sol

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ import {Script} from "forge-std/Script.sol";
77
import {Counter} from "src/Counter.sol";
88

99
contract Deploy is Script {
10-
Counter counter;
11-
12-
function run() public {
10+
function run() public returns (Counter _counter) {
1311
vm.broadcast();
14-
counter = new Counter();
12+
_counter = new Counter();
1513
}
1614
}

test/Counter.t.sol

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
// SPDX-License-Identifier: UNLICENSED
22
pragma solidity 0.8.30;
33

4-
import {Test, console2} from "forge-std/Test.sol";
4+
/// forge-lint: disable-next-line(unused-import)
5+
import {console2} from "forge-std/Test.sol";
6+
import {Test} from "forge-std/Test.sol";
57
import {Deploy} from "script/Deploy.s.sol";
68
import {Counter} from "src/Counter.sol";
79

810
contract CounterTest is Test, Deploy {
11+
Counter counter;
12+
913
function setUp() public {
10-
Deploy.run();
14+
counter = Deploy.run();
1115
}
1216
}
1317

0 commit comments

Comments
 (0)