Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ScreamingHawk committed Oct 29, 2024
1 parent 6f3c60a commit cb4e5ae
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"func-order": "off",
"imports-on-top": "off",
"ordering": "off",
"no-empty-blocks": "off",
"avoid-low-level-calls": "off",
"no-global-import": "off",
"no-unused-vars": "error",
"not-rely-on-time": "off",
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/CallReceiverMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ contract CallReceiverMock {
uint256 public lastValA;
bytes public lastValB;

bool revertFlag;
bool private revertFlag;

constructor() payable { }

Expand Down
4 changes: 2 additions & 2 deletions contracts/mocks/ERC165CheckerMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ pragma solidity 0.8.19;


contract ERC165CheckerMock {
bytes4 constant InvalidID = 0xffffffff;
bytes4 constant ERC165ID = 0x01ffc9a7;
bytes4 private constant InvalidID = 0xffffffff;
bytes4 public constant ERC165ID = 0x01ffc9a7;

function doesContractImplementInterface(address _contract, bytes4 _interfaceId) external view returns (bool) {
uint256 success;
Expand Down
1 change: 1 addition & 0 deletions contracts/modules/utils/MultiCallUtils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ contract MultiCallUtils {
}

function callOrigin() external view returns (address) {
// solhint-disable-next-line avoid-tx-origin
return tx.origin;
}

Expand Down
4 changes: 2 additions & 2 deletions contracts/utils/LibClone.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
pragma solidity 0.8.19;

/// @notice Minimal proxy library.
/// @author Solady (https://github.com/vectorized/solady/blob/main/src/utils/LibClone.sol)
Expand Down Expand Up @@ -199,4 +199,4 @@ library LibClone {
mstore(0x35, 0) // Restore the overwritten part of the free memory pointer.
}
}
}
}

0 comments on commit cb4e5ae

Please sign in to comment.