Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Mint or Burn Tokens. #1515

Closed
Dycedlp opened this issue Nov 24, 2018 · 2 comments
Closed

Can't Mint or Burn Tokens. #1515

Dycedlp opened this issue Nov 24, 2018 · 2 comments

Comments

@Dycedlp
Copy link

Dycedlp commented Nov 24, 2018

pragma solidity ^0.4.18;
import "./MintableToken.sol";
import "./BurnableToken.sol";
import "./StandardToken.sol";


contract Paradisecoin is StandardToken, MintableToken, BurnableToken {
    string public constant name = "APR Token";
    string public constant symbol = "APR";
    uint8 public constant decimals = 18;
    uint256 public constant INITIAL_SUPPLY = 10000 * (10 ** uint256(decimals));
    
    
  function burnFrom(address _from, uint256 _value) public {
    require(_value <= allowed[_from][msg.sender]);
    // Should https://github.com/OpenZeppelin/zeppelin-solidity/issues/707 be accepted,
    // this function needs to emit an event with the updated approval.
    allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
    _burn(_from, _value);
  }
    constructor() public {
        totalSupply_ = INITIAL_SUPPLY;
        balances[msg.sender] = INITIAL_SUPPLY;
        emit Transfer(0x0, msg.sender, INITIAL_SUPPLY);
    }
}

Linux Ubuntu 16
New Remix IDE

Publishes the contract fine with initial amount of coins. When I try to run the mint as well as the burn function to my address, it does nothing to the amount of coins. I'm making the calls through the remix IDE once the contracts deployed. Is there something wrong with my contract why would this be happening?

Thanks.

@nventuro
Copy link
Contributor

Hello @Dycedlp!

Which version of OpenZeppelin are you using? In 2.0 (the latest version), MintableToken has been replaced by ERC20Mintable.

@Dycedlp
Copy link
Author

Dycedlp commented Dec 2, 2018

Ok this is 1.12v @nventuro

@Dycedlp Dycedlp closed this as completed Dec 12, 2018
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

No branches or pull requests

2 participants