Skip to content

Commit

Permalink
style: fixed solhint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
srdtrk committed Jul 30, 2024
1 parent c556b80 commit f4fcc89
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/ICS02Client.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";

contract ICS02Client is IICS02Client, IICS02ClientErrors, Ownable {
/// @dev clientId => counterpartyInfo
mapping(string => CounterpartyInfo) private counterpartyInfos;
/// @dev clientId => client
mapping(string => ILightClient) private clients;
mapping(string clientId => CounterpartyInfo info) private counterpartyInfos;
/// @dev clientId => light client contract
mapping(string clientId => ILightClient client) private clients;
/// @dev clientType => nextClientSeq
mapping(string => uint32) private nextClientSeq;
mapping(string clientType => uint32 nextClientSeq) private nextClientSeq;

/// @param owner_ The owner of the contract
constructor(address owner_) Ownable(owner_) { }
Expand Down
6 changes: 4 additions & 2 deletions src/ICS26Router.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ import { IBCIdentifiers } from "./utils/IBCIdentifiers.sol";
import { IIBCAppCallbacks } from "./msgs/IIBCAppCallbacks.sol";
import { ICS24Host } from "./utils/ICS24Host.sol";
import { ILightClientMsgs } from "./msgs/ILightClientMsgs.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import { ReentrancyGuard } from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

/// @title IBC Eureka Router
/// @notice ICS26Router is the router for the IBC Eureka protocol
contract ICS26Router is IICS26Router, IBCStore, Ownable, IICS26RouterErrors, ReentrancyGuard {
mapping(string => IIBCApp) private apps;
/// @dev portId => IBC Application contract
mapping(string portId => IIBCApp app) private apps;
/// @dev ICS02Client contract
IICS02Client private ics02Client;

constructor(address ics02Client_, address owner) Ownable(owner) {
Expand Down
2 changes: 1 addition & 1 deletion test/IbcIdentifiers.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.25 <0.9.0;

// solhint-disable custom-errors,max-line-length
// solhint-disable gas-custom-errors,max-line-length

import { Test } from "forge-std/src/Test.sol";
import { IBCIdentifiers } from "../src/utils/IBCIdentifiers.sol";
Expand Down

0 comments on commit f4fcc89

Please sign in to comment.