setPortraitHash()

  /**
   * Set a User Portrait
   *
   * @remarks
   * Wallet required.
   *
   * @param {string} hash - The hash of the User Portrait that the user would like to set.
   * @returns {Promise<ethers.ContractTransaction>} - The transaction object, which contains the transaction hash.
   * @beta
   */
  setPortraitHash(hash: string): Promise<ethers.ContractTransaction> {
    return this.portrait.portraitUserContract.setPersonalIpfsCIDByOwner(hash);
  }

Last updated