Skip to main content

BurnableERC20

BurnableERC20

Exposes the burn function of ERC20 for tests

burn

function burn(uint256 value) public virtual returns (bool)

Function to burn tokens

Parameters

NameTypeDescription
valueuint256The amount of tokens to burn.

Return Values

NameTypeDescription
[0]boolA boolean that indicates if the operation was successful.

burnFrom

function burnFrom(address account, uint256 value) public returns (bool)

Function to burn tokens from a specific account

Parameters

NameTypeDescription
accountaddressThe address with the tokens to burn.
valueuint256The amount of tokens to burn.

Return Values

NameTypeDescription
[0]boolA boolean that indicates if the operation was successful.