Port to Solidity 0.8.21 passes 3 tests
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
// SPDX-License-Identifier: UNLICENSED
|
||||
pragma solidity ^0.7.0;
|
||||
pragma solidity >=0.8.0;
|
||||
//pragma solidity ^0.7.0;
|
||||
|
||||
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
pragma solidity >=0.7.5;
|
||||
pragma abicoder v2;
|
||||
|
||||
import '@openzeppelin/contracts/token/ERC721/IERC721Metadata.sol';
|
||||
import '@openzeppelin/contracts/token/ERC721/IERC721Enumerable.sol';
|
||||
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';
|
||||
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol';
|
||||
|
||||
import './IPoolInitializer.sol';
|
||||
import './IERC721Permit.sol';
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
pragma solidity =0.7.6;
|
||||
// pragma solidity =0.7.6;
|
||||
pragma solidity >=0.8.0;
|
||||
|
||||
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ library PoolAddress {
|
||||
/// @return pool The contract address of the V3 pool
|
||||
function computeAddress(address factory, PoolKey memory key) internal pure returns (address pool) {
|
||||
require(key.token0 < key.token1);
|
||||
pool = address(
|
||||
pool = address(uint160(
|
||||
uint256(
|
||||
keccak256(
|
||||
abi.encodePacked(
|
||||
@@ -43,6 +43,6 @@ library PoolAddress {
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user