Closed glaksmono closed 2 years ago
Any version of solidity greater than 0.8.0 won't allow you to convert from/to uint256<->address. If you compile the contracts with a solidity version lower than 0.8.0 it should compile without any errors.
See https://docs.soliditylang.org/en/latest/080-breaking-changes.html (New restriction section outlines this change)
Yeah, ended up doing this pair = address(uint160(uint(keccak256(abi.encodePacked(
seems like that sort it out
I'm getting this error:
Source of error: https://github.com/Uniswap/v2-periphery/blob/master/contracts/libraries/UniswapV2Library.sol#L20
Here's my truffle configuration:
any ideas how to fix this?