app/services/token_management/get_pre_mint_details.rb
# Fetches token details and sets the token id in class variable
#
#
# * Author: Ankit
# * Date: 23/01/2019
# * Reviewed By:
#
# @return [Result::Base]
Fetches token details and sets the token id in class variable
Author: Ankit
Date: 23/01/2019
Reviewed By.
Fetches token details and sets the token id in class variable Author : Ankit Date : 23 / 01 / 2019 Reviewed By .
def fetch_and_set_token_id
      token_resp = Util::EntityHelper.fetch_and_validate_token(@client_id, 'a_s_cm_ggca')
      return validation_error(
        'a_s_cm_ggca_3',
        'invalid_api_params',
        ['invalid_client_id'],
        GlobalConstant::ErrorAction.default
      ) unless token_resp.success?
      @token_details = token_resp.data
      @token_id = @token_details[:id]
      success
    end
def fetch_and_set_token_id token_resp = Util :: EntityHelper . fetch_and_validate_token ( @client_id , 'a_s_cm_ggca' ) return validation_error ( 'a_s_cm_ggca_3' , 'invalid_api_params' , [ 'invalid_client_id' ] , GlobalConstant :: ErrorAction . default ) unless token_resp . success? @token_details = token_resp . data @token_id = @token_details [ :id ] success end
Fetches token details and sets the token id in class variable
 Author: Ankit
 Date: 23/01/2019
 Reviewed By:
Fetches token details and sets the token id in class variable Author : Ankit Date : 23 / 01 / 2019 Reviewed By :
None
Result::Base