-
Notifications
You must be signed in to change notification settings - Fork 27
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
bug: Newly created DAOs cannot initiate proposals due to no initial members #159
Comments
It may be necessary to register DAOT as a member plugin when creating DAO |
first member need to init in the template |
how about add script function join_member_with_root_cap in DAOSpace? |
This is DAO create tempate in starcoin-dao-frontend: |
The current logical caller account will be upgraded to DAO, is it possible to create a new account here for DAO creation |
In the previous logic, you can use ${daoName} as a plugin to apply for member_cap permission to make an account a member |
There is no way to specify other accounts as members when the account is upgraded. Here is a solution. Member can be issued through the Offer mechanism, and a member Offer can be issued to an address when it is created. |
I found a way to create a new account, I don't know if it will work? starcoin-framework/sources/daospace/DAOAccount.move Lines 35 to 38 in d2c4f5c
Adding join_member_with_root_cap to the DAOSpace feels simpler if this approach works. |
After changing from DAOAccount::upgrade_to_dao to DAOAccount::create_account, creating DAO reports an error: ALERT: Starmask: contract.dry_run_raw failed. Error: {"MoveAbort":{"abort_code":25858,"explain":{"category_code":2,"category_name":"REQUIRES_ADDRESS","reason_code":101,"reason_name ":"ETOKEN_REGISTER"},"location":{"Module":{"address":"0x00000000000000000000000000000001","name":"Token"}}}} |
@jolestar 2 will Abort, when create Token in DAOSpace::create_dao, the error is: {"MoveAbort":{"abort_code":25858,"explain":{"category_code":2,"category_name":"REQUIRES_ADDRESS","reason_code":101,"reason_name ":"ETOKEN_REGISTER"},"location":{"Module":{"address":"0x00000000000000000000000000000001","name":"Token"}}}} code: starcoin-framework/sources/Token.move Line 113 in d2c4f5c
|
The right approach:
|
It seems that this also requires DAOSpace to provide the join_member_with_root_cap method to add Alice as a member. |
@jolestar I found a new way to skip the upgrade plan:
|
if there is no Upgrade Plan, Alice can not deploy the package to DAOAccount. |
I thought about it, it is true |
@jolestar How to deploy a Package to DAOAccount, is there a sample program? |
@0xpause can help to write an integration-test for give a example for this? |
I'll try to write one. For now, you can have a look at the exampels dao_proposal.move and dao_upgrade.move. @yubing744 |
|
Bug Report
branch: master
commit: d2c4f5c
Current behavior:
When I created the DAO, I did not have the ability to specify initial members. After the DAO was created successfully, no one could initiate a proposal to add new members.
Expected behavior:
DAOSpace provides methods to add members based on root_cap
The text was updated successfully, but these errors were encountered: