Skip to content

Lesson 12 testing _burn function ERC20 #1649

Answered by adityabhattad2021
obc92 asked this question in Q&A
Discussion options

You must be logged in to vote

You are getting error because _burn function is an internal function

function _burn(address account, uint256 amount) internal virtual {...}

which means that it can only be called within the contract.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@adityabhattad2021
Comment options

@obc92
Comment options

Answer selected by obc92
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants