app/services/wallet_addresses_management/create_ost_managed_address.rb
# Update token owner address in token addresses table
#
#
# * Author: Ankit
# * Date: 24/04/2019
# * Reviewed By:
#
# @return [Result::Base]
Update token owner address in token addresses table
Author: Ankit
Date: 24/04/2019
Reviewed By.
Update token owner address in token addresses table Author : Ankit Date : 24 / 04 / 2019 Reviewed By .
def update_token_owner_addresses
      if @owner_address.present?
        token_address = TokenAddresses.where(token_id: @token_id, kind: GlobalConstant::TokenAddresses.owner_address_kind).first
        token_address[:address] = @new_known_address
        token_address[:known_address_id] = @known_address_id
        token_address.save!
      else
        TokenAddresses.create!(
          token_id: @token_id,
          kind: GlobalConstant::TokenAddresses.owner_address_kind,
          address: @new_known_address,
          known_address_id: @known_address_id
        )
      end
    end
def update_token_owner_addresses if @owner_address . present? token_address = TokenAddresses . where ( token_id : @token_id , kind : GlobalConstant :: TokenAddresses . owner_address_kind ) . first token_address [ :address ] = @new_known_address token_address [ :known_address_id ] = @known_address_id token_address . save! else TokenAddresses . create! ( token_id : @token_id , kind : GlobalConstant :: TokenAddresses . owner_address_kind , address : @new_known_address , known_address_id : @known_address_id ) end end
Update token owner address in token addresses table
 Author: Ankit
 Date: 24/04/2019
 Reviewed By:
Update token owner address in token addresses table Author : Ankit Date : 24 / 04 / 2019 Reviewed By :
None
Result::Base