app/services/wallet_addresses_management/create_ost_managed_address.rb
# Update token owner address in client wallet address
#
#
# * Author: Ankit
# * Date: 24/04/2019
# * Reviewed By:
#
# @return [Result::Base]
Update token owner address in client wallet address
Author: Ankit
Date: 24/04/2019
Reviewed By.
Update token owner address in client wallet address Author : Ankit Date : 24 / 04 / 2019 Reviewed By .
def update_client_wallet_address
      client_address = ClientWalletAddress.where(client_id: @client_id).first_or_initialize
      client_address[:address] = @new_known_address
      client_address[:sub_environment] = GlobalConstant::Base.sub_environment_name
      client_address[:status] = GlobalConstant::WalletAddressStatus.active_status
      client_address.save!
    end
def update_client_wallet_address client_address = ClientWalletAddress . where ( client_id : @client_id ) . first_or_initialize client_address [ :address ] = @new_known_address client_address [ :sub_environment ] = GlobalConstant :: Base . sub_environment_name client_address [ :status ] = GlobalConstant :: WalletAddressStatus . active_status client_address . save! end
Update token owner address in client wallet address
 Author: Ankit
 Date: 24/04/2019
 Reviewed By:
Update token owner address in client wallet address Author : Ankit Date : 24 / 04 / 2019 Reviewed By :
None
Result::Base