Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: no easy way to upgrade contract bytecode #1096

Open
yihuang opened this issue Jul 11, 2023 · 0 comments
Open

Problem: no easy way to upgrade contract bytecode #1096

yihuang opened this issue Jul 11, 2023 · 0 comments

Comments

@yihuang
Copy link
Collaborator

yihuang commented Jul 11, 2023

We can take advantage of the builtin gov process to do contract upgrade, implement a contract upgrade proposal type, proposer submit the contract address and bytecode, after proposal passed, the contract is upgraded.

Advantages

  • contract address don't change
  • don't need any dev effort in contract level

Disadvantage

  • need the whole chain gov process to upgrade an individual contract, so probably only works for important contracts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant