diff --git a/app/models/bitcoin_address.rb b/app/models/bitcoin_address.rb index 63ae605..bdb3c3e 100644 --- a/app/models/bitcoin_address.rb +++ b/app/models/bitcoin_address.rb @@ -9,8 +9,10 @@ def request_balance url logger.info("request_balance: #{url}") response=Net::HTTP.get(URI.parse(url)) logger.info("response: #{response}") + rem=response.gsub('\\.', '') + logger.info("removed: #{rem}") - (Integer(response.gsub('\\.', '')) rescue false) + (Integer(rem) rescue false) end def update_balance