roberts / standard

Drew Roberts Contract Standard for ERC-20 Tokens
https://DrewRoberts.com
MIT License
0 stars 1 forks source link

updateDeveloperWallet() Function #10

Open drewroberts opened 8 months ago

drewroberts commented 8 months ago

This function updates the developer wallet in the contract. I may comment this out in most of the contracts, but I still want it to be there.

drewroberts commented 8 months ago

Here is that function in my old contract standard:

    function updateDevelopmentWallet(address _developmentWallet)
        external
        onlyOwner
    {
        require(_developmentWallet != address(0), "ERC20: Address 0");
        address oldWallet = developmentWallet;
        developmentWallet = _developmentWallet;
        emit developmentWalletUpdated(developmentWallet, oldWallet);
    }