Skip to content

Commit 6e05160

Browse files
authored
chore: fix and add typos in ci (#695)
1 parent 1b36509 commit 6e05160

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13+
timeout-minutes: 30
1314
steps:
1415
- uses: actions/checkout@v4
1516

@@ -97,6 +98,7 @@ jobs:
9798

9899
test:
99100
runs-on: ubuntu-latest
101+
timeout-minutes: 30
100102
steps:
101103
- uses: actions/checkout@v4
102104

@@ -113,6 +115,7 @@ jobs:
113115

114116
fmt:
115117
runs-on: ubuntu-latest
118+
timeout-minutes: 30
116119
steps:
117120
- uses: actions/checkout@v4
118121

@@ -126,3 +129,10 @@ jobs:
126129

127130
- name: Check formatting
128131
run: forge fmt --check
132+
133+
typos:
134+
runs-on: ubuntu-latest
135+
timeout-minutes: 30
136+
steps:
137+
- uses: actions/checkout@v4
138+
- uses: crate-ci/typos@v1

src/StdStorage.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ library stdStorageSafe {
4242

4343
// Calls target contract with configured parameters
4444
function callTarget(StdStorage storage self) internal view returns (bool, bytes32) {
45-
bytes memory cald = abi.encodePacked(self._sig, getCallParams(self));
46-
(bool success, bytes memory rdat) = self._target.staticcall(cald);
45+
bytes memory cd = abi.encodePacked(self._sig, getCallParams(self));
46+
(bool success, bytes memory rdat) = self._target.staticcall(cd);
4747
bytes32 result = bytesToBytes32(rdat, 32 * self._depth);
4848

4949
return (success, result);

src/StdUtils.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ abstract contract StdUtils {
9595
}
9696

9797
/// @dev Compute the address a contract will be deployed at for a given deployer address and nonce
98-
/// @notice adapted from Solmate implementation (https://github.com/Rari-Capital/solmate/blob/main/src/utils/LibRLP.sol)
9998
function computeCreateAddress(address deployer, uint256 nonce) internal pure virtual returns (address) {
10099
console2_log_StdUtils("computeCreateAddress is deprecated. Please use vm.computeCreateAddress instead.");
101100
return vm.computeCreateAddress(deployer, nonce);

0 commit comments

Comments
 (0)