I am using the openzeppelin library and importing the StandardBurnableToken.sol
logic into MyContract.sol
here is a code
pragma solidity ^0.4.17;
import "/openzeppelin-solidity/contracts/token/ERC20/StandardToken.sol";
import "/openzeppelin-solidity/contracts/token/ERC20/StandardBurnableToken.sol";
contract MyToken is StandardToken {
string public name = 'Membership Token';
string public symbol = 'MTKO';
uint8 public decimal = 18;
uint public INITIAL_SUPPLY = 1000000;
constructor() public {
totalSupply_ = INITIAL_SUPPLY;
balances[msg.sender] = INITIAL_SUPPLY;
}
}
Do I need to add another function in MyToken.sol
to be able to call the burnFrom()
function? or is that once the logic is in the ABI it can send tokens to 0x0 addresses?