async updateFTCommitmentByCommitmentHash(commitmentHash, data) {
    const { isBurned, isBatchTransferred } = data;
    const mappedData = ftCommitmentMapper(data);

    await this.db.updateData(
      COLLECTIONS.FT_COMMITMENT,
      {
        ft_commitment: commitmentHash,
        is_transferred: { $exists: false },
        is_batch_transferred: { $exists: false },
      },
      { $set: mappedData },
    );

    if (isBurned || isBatchTransferred) await this.insertFTCommitmentTransaction(data);
  }
/**
   * This function will update coin for transfer and burn
   * @param {object} data - contains all the atributes required while transfer and burn of a coin
   */
This function will update coin for transfer and burn
@param {object} data - contains all the atributes required while transfer and burn of a coin
This function will update coin for transfer and burn @param { object } data - contains all the atributes required while transfer and burn of a coin
async updateFTCommitmentByCommitmentHash(commitmentHash, data) {
    const { isBurned, isBatchTransferred } = data;
    const mappedData = ftCommitmentMapper(data);
    await this.db.updateData(
      COLLECTIONS.FT_COMMITMENT,
      {
        ft_commitment: commitmentHash,
        is_transferred: { $exists: false },
        is_batch_transferred: { $exists: false },
      },
      { $set: mappedData },
    );
    if (isBurned || isBatchTransferred) await this.insertFTCommitmentTransaction(data);
  }
async updateFTCommitmentByCommitmentHash ( commitmentHash , data ) { const { isBurned , isBatchTransferred } = data ; const mappedData = ftCommitmentMapper ( data ) ; await this . db . updateData ( COLLECTIONS . FT_COMMITMENT , { ft_commitment : commitmentHash , is_transferred : { $exists : false } , is_batch_transferred : { $exists : false } , } , { $set : mappedData } , ) ; if ( isBurned || isBatchTransferred ) await this . insertFTCommitmentTransaction ( data ) ; }
This function will update coin for transfer and burn
 @param {object} data - contains all the atributes required while transfer and burn of a coin
This function will update coin for transfer and burn @param { object } data - contains all the atributes required while transfer and burn of a coin