starcoinorg / starcoin-framework

The Starcoin Move framework
Apache License 2.0
49 stars 27 forks source link

[TODO] UpgradePlanEventHolder init #141

Open jolestar opened 1 year ago

jolestar commented 1 year ago

https://github.com/starcoinorg/starcoin-framework/blob/e82c1d32c98170e82f2145bf5a03badf8af06de7/sources/PackageTxnManager.move#L271-L281

pause125 commented 1 year ago

I've tried the following way:

  1. In Account module, add a friend function to get a signer from address: public(friend) fun get_signer_of(account: address)
  2. Create a new script function in a new file PackageTxnManagerUpgrade.move for DAO to invoke, here is the commit

This may be a feasiable way, but the DAO has to upgrade contract.