Skip to content

Conversation

@mjdietzx
Copy link

@mjdietzx mjdietzx commented Mar 2, 2018

Fixes #785

🚀 Description

Changes the interface of BurnableToken burn => function burn(address _from, uint256 _amount) onlyOwner public returns (bool) to be consistent with MintableToken mint. The improvements are as follows:

  1. Only the owner of the contract can burn tokens (seems to be much more useful/standard than anybody being able to burn.
  2. The owner can choose which account to burn from.
  3. Makes unit-tests more thorough in general for BurnableToken and adds unit-tests for functionality added in this PR.
  • 📘 I've reviewed the OpenZeppelin Contributor Guidelines
  • ✅ I've added tests where applicable to test my new functionality.
  • 📖 I've made sure that my contracts are well-documented.
  • 🎨 I've run the JS/Solidity linters and fixed any issues (npm run lint:all:fix).

@mjdietzx
Copy link
Author

mjdietzx commented Mar 6, 2018

This functionality doesn't belong in BurnableToken

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

📈 Make BurnableToken consistent w/ MintableToken (i.e. onlyOwner and burnFrom configurable)

1 participant