Skip to content

Commit

Permalink
fix: Soften solc version and make transferOwnership internal
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmtzinf committed Apr 5, 2024
1 parent f8c6250 commit 09c1980
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions contracts/foundry-lib/solidity-utils
Submodule solidity-utils added at 9d4d04
2 changes: 1 addition & 1 deletion contracts/src/v0.8/ccip/pools/BurnMintTokenPool.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.19;
pragma solidity ^0.8.0;

import {ITypeAndVersion} from "../../shared/interfaces/ITypeAndVersion.sol";
import {IBurnMintERC20} from "../../shared/token/ERC20/IBurnMintERC20.sol";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.19;
pragma solidity ^0.8.0;

import {IBurnMintERC20} from "../../shared/token/ERC20/IBurnMintERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/src/v0.8/ccip/pools/LockReleaseTokenPool.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.19;
pragma solidity ^0.8.0;

import {ITypeAndVersion} from "../../shared/interfaces/ITypeAndVersion.sol";
import {ILiquidityContainer} from "../../rebalancer/interfaces/ILiquidityContainer.sol";
Expand Down
6 changes: 3 additions & 3 deletions contracts/src/v0.8/ccip/pools/TokenPool.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.19;
pragma solidity ^0.8.0;

import {IPool} from "../interfaces/pools/IPool.sol";
import {IARM} from "../interfaces/IARM.sol";
Expand Down Expand Up @@ -74,11 +74,11 @@ abstract contract TokenPool is IPool, OwnerIsCreator, IERC165 {
EnumerableSet.UintSet internal s_remoteChainSelectors;
/// @dev Outbound rate limits. Corresponds to the inbound rate limit for the pool
/// on the remote chain.
mapping(uint64 remoteChainSelector => RateLimiter.TokenBucket) internal s_outboundRateLimits;
mapping(uint64 => RateLimiter.TokenBucket) internal s_outboundRateLimits;
/// @dev Inbound rate limits. This allows per destination chain
/// token issuer specified rate limiting (e.g. issuers may trust chains to varying
/// degrees and prefer different limits)
mapping(uint64 remoteChainSelector => RateLimiter.TokenBucket) internal s_inboundRateLimits;
mapping(uint64 => RateLimiter.TokenBucket) internal s_inboundRateLimits;

constructor(IERC20 token, address[] memory allowlist, address armProxy, address router) {
if (address(token) == address(0) || router == address(0)) revert ZeroAddressNotAllowed();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ contract ConfirmedOwnerWithProposal is IOwnable {
}

/// @notice validate, transfer ownership, and emit relevant events
function _transferOwnership(address to) private {
function _transferOwnership(address to) internal {
// solhint-disable-next-line custom-errors
require(to != msg.sender, "Cannot transfer to self");

Expand Down

0 comments on commit 09c1980

Please sign in to comment.