Hello anyone out there.
Please I'm facing an issue.
I 'm using the upgradeable smart contract created using the smart contract wizard. But whenever I finish compiling and send the contract to the bsc testnet the transaction is always successful but it doesn't create my token Name and token total Supply. I've tried all I could with no success.
Please can someone help. Below is the code that suppose to execute that.
contract FITME is Initializable, ERC20Upgradeable, ERC20BurnableUpgradeable, PausableUpgradeable, OwnableUpgradeable {
/// @custom:oz-upgrades-unsafe-allow constructor
constructor() initializer {}
function initialize() initializer public {
__ERC20_init("FITME", "FM");
__ERC20Burnable_init();
__Pausable_init();
__Ownable_init();
_mint(msg.sender, 30000000000 * 10 ** decimals());
}
function pause() public onlyOwner {
_pause();
}
function unpause() public onlyOwner {
_unpause();
}
function mint(address to, uint256 amount) public onlyOwner {
_mint(to, amount);
}
function _beforeTokenTransfer(address from, address to, uint256 amount)
internal
whenNotPaused
override
{
super._beforeTokenTransfer(from, to, amount);
}
}