Activating a Transaction

In order for the mulltisig to approve or reject a transaction, the transaction must be activated by switching the status to "Active". Only the creator of a transaction can change the state to Active, and once activated it is no longer possible to change instruction data attached to the transaction.

  // the member/creator
  const creator = wallet.publicKey;
  
  // acitvate the tx
  await program.methods.activateTransaction()
           .accounts({
                multisig,
                transaction,
                creator
           })
           .rpc();