It is possible to change BEP-20 smart contract code?

56 Views Asked by At

I have deployed a contract on the BEP-20 network and now I don't need mint and owner address transfer functionality. So I want to remove these options from the "write contract" options list. If it is possible if yes then what can I do?

1

There are 1 best solutions below

0
Petr Hejda On

Smart contract bytecode is immutable. Assuming that your contract is not a proxy but a regular contract - you cannot change the already deployed code.

After you've made the changes in your local code, you'll need to recompile it, and deploy to a new address.