How to burn Openzepellin ERC20?

UPDATE: RESOLVED;
after launching the contract i can see there is a burn and burnfrom function. Thanks openzeppelin

Copied this from the Contractz wizard, but when i tick "Burnable" it only adds an import library.
I don't see the burn function.

So how do i burn the ERC20?

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract DummyToken is ERC20, ERC20Burnable, Ownable {
    constructor() ERC20("dummyToken", "DUMMY") {}

    function mint(address to, uint256 amount) public onlyOwner {
        _mint(to, amount);
    }
}
2 Likes