-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Params.InstantiateDefaultPermission
does not support AccessTypeAnyOfAddresses
#1501
Comments
The user that uploads a contract should define the authorization scope for the instantiation. The scope must not exceed the chain's default scope though for restricted chains. In the discussions, only Nobody and Everybody (unrestricted) made sense for us. |
Thanks @alpe. We're keen to retain the permissioned contract instantiation on the chain for quality and safety reasons - and have that as the standard way that contracts are instantiated and migrated. However this introduces a delay for governance for all code changes, which isn't particularly desirable if there are urgent patches. The plan is currently to set a CW3 multisig as the default instantiation permission for all new code, so that emergency upgrades can be performed to contracts with that also set as admin. |
👍 Thank you for the additional details! I do understand the use-case better now. The changes to the code would require a module upgrade for the store. |
Yup for sure. I've also realised that we can achieve the same here by using the upload permissions instead. If instantiate permissions are set to |
Unfortunately not. Upload and instantiate permission are not merged. When params are set to Nevertheless, the workaround is not using a mulitsig contract but the SDK multisig as contract can not upload new wasm codes.
You could pass a multisig contract address as accepted address with the upload but you can not enforce this to be set currently. When left empty the chains default would be used. |
I have read #1584 today which may work for your use case as well. Working with authz would require less changes to wasmd. |
The current definition of the
Params
type looks like thiswhich is only storing the
AccessType
, which if set toACCESS_TYPE_ANY_OF_ADDRESSES
, therefore can't store a list ofaddresses
. Just wanted to check this wasn't intentional? Will PR a fix otherwiseThe text was updated successfully, but these errors were encountered: