current position:Home>Write an upgradeable smart contract

Write an upgradeable smart contract

2022-02-03 23:42:15 Q & A of Denglian community

image.png

Tiny Hello Teacher ,

If you are using “ Write an upgradeable smart contract ” As mentioned in the article “ Only update control contract repair Bug” Methods , Do we still need to redeploy this contract ? Can its address on the blockchain remain unchanged ? Right and DApp What are the effects of interacting users ?




Take the answer 1:

The contract needs to be redeployed , The address will change , Therefore, you need to upgrade synchronously DApp Equal periphery .

Upgraded can be understood as for the whole system , The functions of the system include multiple contracts , Upgrade to replace an old contract with a new contract . The old contract will also remain on the Ethereum chain , Its address will not change .




copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032342135068.html

Random recommended