Parity-ethereum: Please unregister MyB token

Created on 21 Jun 2018  路  6Comments  路  Source: openethereum/parity-ethereum

馃憢 hi! We did a token swap a few weeks ago, and now our MyB token is officially MYB token 馃帀

We are about to finish registering our token into your registry, so now we kindly ask you to remove our old one to avoid any confusions.

Old rusty MyB token - https://etherscan.io/address/0x94298f1e0ab2dfad6eeffb1426846a3c29d98090
New shinny MYB token - https://etherscan.io/address/0x5d60d8d7ef6d37e16ebabc324de3be57f135e0bc

We verified our token swap online - https://twitter.com/MyBit_DApp/status/993879392433602560.

Thank you! 馃檹

F3-annoyance 馃挬 M8-dapp 馃拵 P5-sometimesoon 馃尣

Most helpful comment

All 6 comments

Only the owner of the token can unregister it.
You can do it by calling the unregister function: https://github.com/parity-contracts/token-registry/blob/master/contracts/TokenReg.sol#L97

Hey @Tbaut, unless I'm missing something it seems the unregister function has an onlyOwner modifier instead of an onlyTokenOwner modifier.

function unregister(uint _id)
        external
        whenToken(_id)
        onlyOwner
    {
        emit Unregistered(tokens[_id].tla, _id);
        delete mapFromAddress[tokens[_id].addr];
        delete mapFromTLA[tokens[_id].tla];
        tokens[_id].deleted = true;
        tokenCount = tokenCount - 1;
    }
    modifier onlyOwner {
        require(msg.sender == owner);
        _;
    }
    modifier onlyTokenOwner(uint _id) {
        if (tokens[_id].owner != msg.sender)
            return;
        _;
    }

Yeah, unfortunately the owner can not unregister it.

@5chdn thanks for reopening the issue. Unfortunately we can鈥檛 register the new contract until the old one is removed. We appreciate your support!

@5chdn thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

famfamfam picture famfamfam  路  3Comments

bryaan picture bryaan  路  3Comments

jurijbajzelj picture jurijbajzelj  路  3Comments

BillSantos picture BillSantos  路  3Comments

dukei picture dukei  路  3Comments