Ownership Transfer to DAO
Objective
Logic
Anchor Code
pub fn transfer_authority(ctx: Context<TransferAuthority>) -> Result<()> {
let dao_account = &mut ctx.accounts.dao_account;
dao_account.authority = ctx.accounts.dao_voting_wallet.key();
Ok(())
}
Security Notes
Last updated