// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract CustomToken is ERC20, Ownable {
constructor(
string memory name,
string memory symbol,
uint256 initialSupply,
address recipient
)
ERC20(name, symbol)
Ownable(msg.sender) // 👈 pass the deployer as the initial owner
{
_mint(recipient, initialSupply);
renounceOwnership(); // 👈 immediately renounce
}
}