From ff33ff5ca43de3b23be6af66591394c265265213 Mon Sep 17 00:00:00 2001 From: FreeTrade Date: Thu, 12 Apr 2018 02:54:09 +0700 Subject: [PATCH] Update signature.rb --- app/models/signature.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/signature.rb b/app/models/signature.rb index 53e501c..6498ca2 100644 --- a/app/models/signature.rb +++ b/app/models/signature.rb @@ -27,7 +27,7 @@ def create_bitcoin_address_if_needed if btc_addr = BitcoinAddress.find_by_bitcoin_address(signature_address) self.bitcoin_address_id = btc_addr.id else - res = Net::HTTP.get(URI.parse("http://hodl.amit.systems:1781/ext/getbalance/#{signature_address}")) + res = Net::HTTP.get(URI.parse("http://hodl.amit.systems:1781/ext/getbalance/#{signature_address}")).gsub(/\W/, '') if (balance=res.to_i) > 0 btc_addr = BitcoinAddress.create({bitcoin_address: signature_address, balance: balance }) self.bitcoin_address_id = btc_addr.id