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

Write factory contract that can instantiate a contract with the contract as its own admin. #359

Closed
0xekez opened this issue Jun 17, 2022 · 1 comment · Fixed by #370
Closed
Assignees

Comments

@0xekez
Copy link
Contributor

0xekez commented Jun 17, 2022

This contract should likely just take a Binary message and a code ID and:

  1. Instantiate an instance of the contract with itself as the admin.
  2. Do a WasmMsg::UpdateAdmin to make the contract its own admin.
@blue-note blue-note self-assigned this Jun 17, 2022
@blue-note
Copy link
Contributor

context: this is necessary to allow the core contract to migrate itself, since only the wasm admin can migrate a contract

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

Successfully merging a pull request may close this issue.

2 participants