setMinimumControlShares()

/**
   * Set the minimum number of shares required to control the Collective Portrait.
   *
   * @remarks
   * Setting the minimum number of shares required to control the Collective Portrait is the number of shares that a shareholder must have to be able to control the Collective Portrait.
   * Control of the Collective Portrait is defined as being able to change the Collective Portrait's hash, minimum control shares, and share split.
   * Setting the minimum number of shares requires to own the minimum number of shares required to control the Collective Portrait.
   *
   * @param {CollectivePortraitName | number} identity - The name of the Collective Portrait that the user would like to set the minimum number of shares required to control for.
   * @param {number} shares - The minimum number of shares required to control the Collective Portrait.
   * @returns {ethers.ContractTransaction} - The transaction object of the transaction that sets the minimum number of shares required to control the Collective Portrait.
   * @beta
   * @async
   */
  setMinimumControlShares(
    identity: CollectivePortraitName | number,
    shares: number,
  ): Promise<ethers.ContractTransaction> {
    const id =
      typeof identity === 'number' ? identity : this.getTokenIdByName(identity);
    return this.portrait.portraitCollectiveContract.setMinimumControlShares(
      id,
      shares,
    );
  }

Last updated