I have been working on erc20 contract with the support of openzeppelin erc20 contracts . One thing I am trying to do is to have the ability to change basic details of contract like contract name or contract symbol after it is deployed for admins . I have successfully implemented access controls but I am unable to change details . Here is basic function which I wrote
function changename(string memory name) public onlyadmin{
name = name;
}
but it doesn’t change contract name.
Anyone can help me what mistake I am doing ?
I would be cautious about changing things such as token name as users may not expect this to change. (Though changing the name isn’t prohibited in the EIP).
I would recommend being clear with users under what circumstances these changes would occur.
Also suggest checking what support there is for name changing, e.g. Etherscan didn’t display my name change.