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
public (friend) fun get_genesis_upgrade_cap<TokenT:store>():PackageTxnManager::UpgradePlanCapability acquires UpgradeModuleCapability{
let UpgradeModuleCapability<TokenT>{
cap
} = move_from(Token::token_address<TokenT>());
cap
}
增加 upgrade_starcoin_dao ,并只能在 StarcoinDAO 调用:
public (friend) fun upgrade_starcoin_dao(sender:signer): DAOAccountCap{
let signer_cap = Account::remove_signer_capability(&sender);
let dao_address = Signer::address_of(&sender);
let upgrade_plan_cap = UpgradeModuleDaoProposal::get_genesis_upgrade_cap<STC>();
move_to(&sender, DAOAccount{
dao_address,
signer_cap,
upgrade_plan_cap,
});
DAOAccountCap{
dao_address
}
}
Feature Request
Describe the Feature Request
Migrate the old UpgradeModuleDaoProposal to DAOSpace.
PackageTxnManager::UpgradePlanCapability
from UpgradeModuleDaoProposal to StarcoinDAO instance.Describe Preferred Solution
Describe Alternatives
Related Code
Additional Context
If the feature request is approved, would you be willing to submit a PR?
Yes / No (Help can be provided if you need assistance submitting a PR)
The text was updated successfully, but these errors were encountered: