Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

BaseTestFungibleToken

Git Source

Inherits: ERC20

Functions

mint

Mint fungible tokens for oneself.

function mint(uint256 value) external;

Parameters

NameTypeDescription
valueuint256The amount of fungible tokens to mint

mint

Mint fungible tokens.

Compatible with cast erc20 mint <TOKEN> <TO> <VALUE>.

function mint(address to, uint256 value) external;

Parameters

NameTypeDescription
toaddressThe account that will receive the tokens
valueuint256The amount of fungible tokens to mint

burn

Burn fungible tokens from one's balance.

Compatible with cast erc20 burn <TOKEN> <VALUE>.

function burn(uint256 value) external;

Parameters

NameTypeDescription
valueuint256The amount of fungible tokens to burn