You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there is no way to transfer contract migration ownership to other address, if the admin is a contract.
It would be great to have some interface to transfer migration privilege to other address.
The text was updated successfully, but these errors were encountered:
yun-yeo
changed the title
Suggestion: Add WasmMsg::UpdateOwner to transfer migration ownership to other address
Suggestion: Add WasmMsg::UpdateAdmin to transfer migration ownership to other address
Apr 20, 2021
I think we decided to make one with String and other with no field, rather than using Option<String> for the public messages. I would keep the same here, unless there is a strong objection.
Good point, @ethanfrey. Let's make the messages match the wasmd types:
// MsgUpdateAdmin sets a new admin for a smart contractmessageMsgUpdateAdmin {
// Sender is the that actor that signed the messagesstringsender=1;
// NewAdmin address to be setstringnew_admin=2;
// Contract is the address of the smart contractstringcontract=3;
}
// MsgClearAdmin removes any admin stored for a smart contractmessageMsgClearAdmin {
// Sender is the that actor that signed the messagesstringsender=1;
// Contract is the address of the smart contractstringcontract=3;
}
I think we decided to split it in two message types to make clearing admin very explicit.
Currently there is no way to transfer contract migration ownership to other address, if the admin is a contract.
It would be great to have some interface to transfer migration privilege to other address.
The text was updated successfully, but these errors were encountered: