Skip to content

Commit

Permalink
fix solhint
Browse files Browse the repository at this point in the history
  • Loading branch information
daveroga committed Jan 8, 2025
1 parent d31f2ca commit 7ad4411
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
4 changes: 3 additions & 1 deletion contracts/interfaces/IVerifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,9 @@ interface IVerifier {
* @param multiRequestId The ID of the multiRequest
* @return multiRequest The multiRequest data
*/
function getMultiRequest(uint256 multiRequestId) external view returns (MultiRequest memory multiRequest);
function getMultiRequest(
uint256 multiRequestId
) external view returns (MultiRequest memory multiRequest);

/**
* @dev Get the proof status for the sender and request with requestId.
Expand Down
10 changes: 2 additions & 8 deletions contracts/test-helpers/EmbeddedVerifierWrapper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,8 @@ import {IRequestValidator} from "../interfaces/IRequestValidator.sol";
import {IVerifier} from "../interfaces/IVerifier.sol";

contract EmbeddedVerifierWrapper is EmbeddedVerifier {
event BeforeProofSubmit(
AuthResponse authResponse,
Response[] responses
);
event AfterProofSubmit(
AuthResponse authResponse,
Response[] responses
);
event BeforeProofSubmit(AuthResponse authResponse, Response[] responses);
event AfterProofSubmit(AuthResponse authResponse, Response[] responses);

function initialize(address initialOwner, IState state) public initializer {
super.__EmbeddedVerifier_init(initialOwner, state);
Expand Down
20 changes: 12 additions & 8 deletions contracts/verifiers/Verifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ abstract contract Verifier is IVerifier, ContextUpgradeable {
* @return Whether the multiRequest ID exists
*/
function multiRequestIdExists(uint256 multiRequestId) public view returns (bool) {
return _getVerifierStorage()._multiRequests[multiRequestId].multiRequestId == multiRequestId;
return
_getVerifierStorage()._multiRequests[multiRequestId].multiRequestId == multiRequestId;
}

/**
Expand Down Expand Up @@ -305,7 +306,9 @@ abstract contract Verifier is IVerifier, ContextUpgradeable {
* @param multiRequestId The ID of the multiRequest
* @return multiRequest The multiRequest data
*/
function getMultiRequest(uint256 multiRequestId) public view returns (IVerifier.MultiRequest memory multiRequest) {
function getMultiRequest(
uint256 multiRequestId
) public view returns (IVerifier.MultiRequest memory multiRequest) {
return _getVerifierStorage()._multiRequests[multiRequestId];
}

Expand Down Expand Up @@ -680,12 +683,13 @@ abstract contract Verifier is IVerifier, ContextUpgradeable {
for (uint256 j = 0; j < s._groupedRequests[groupId].length; j++) {
uint256 requestId = s._groupedRequests[groupId][j];

requestProofStatus[multiRequest.requestIds.length + j] = IVerifier.RequestProofStatus({
requestId: requestId,
isVerified: s._proofs[requestId][userID][0].isVerified,
validatorVersion: s._proofs[requestId][userID][0].validatorVersion,
timestamp: s._proofs[requestId][userID][0].blockTimestamp
});
requestProofStatus[multiRequest.requestIds.length + j] = IVerifier
.RequestProofStatus({
requestId: requestId,
isVerified: s._proofs[requestId][userID][0].isVerified,
validatorVersion: s._proofs[requestId][userID][0].validatorVersion,
timestamp: s._proofs[requestId][userID][0].blockTimestamp
});
}
}

Expand Down

0 comments on commit 7ad4411

Please sign in to comment.