roberts / standard

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

updateCommunityWallet() Function #8

Open drewroberts opened 8 months ago

drewroberts commented 8 months ago

This function updates the community wallet in the contract.

drewroberts commented 8 months ago

Here is that function in my old contract standard:

    function updateCommunityFundWallet(address _communityFundWallet)
        external
        onlyOwner
    {
        require(_communityFundWallet != address(0), "ERC20: Address 0");
        address oldWallet = communityFundWallet;
        communityFundWallet = _communityFundWallet;
        emit communityFundWalletUpdated(communityFundWallet, oldWallet);
    }