misc: encodeWithSelector changed to encodeCall

This commit is contained in:
vicnaum
2023-09-27 21:23:18 +02:00
parent 1d93104752
commit 63fe157dc8

View File

@@ -92,7 +92,7 @@ library FollowLib {
* @return address The address of the deployed Follow NFT contract.
*/
function _deployFollowNFT(uint256 profileId) private returns (address) {
bytes memory functionData = abi.encodeWithSelector(IFollowNFT.initialize.selector, profileId);
bytes memory functionData = abi.encodeCall(IFollowNFT.initialize, profileId);
address followNFT = address(new FollowNFTProxy(functionData));
emit Events.FollowNFTDeployed(profileId, followNFT, block.timestamp);