peatio-bitgo 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ae724cff419d17080fe3eab88cf0f3f8d31c3d41e787f350d8b5773f93f2078
4
- data.tar.gz: 434d994c43c8e60a29d71078098114412946c994467e0f1790db2c390d7dd651
3
+ metadata.gz: 0e6ffc9f6a29d20c55aa26f8a994716ce498de62148155aa0c9e913317b22556
4
+ data.tar.gz: c555fb0d1b789975bda7a2c66b5b603495595e2fbd444190a7d09482ecf6a18c
5
5
  SHA512:
6
- metadata.gz: 641b57188eebb0f220733bd31db3a6ec27d17a2329e66038e6d2c1f25986d571d67cd94e5f177518057e096efe9ad775c9afb68e64a82a222d43b21fd0c72f2b
7
- data.tar.gz: 87ef8015868f4a01f34242d7b111a2d35ccf0144da50c859216dc611e028c9378c4cd310213463983ce4b5fcb8c9125fd01a2abbfcd8cbf2a996ca371d78b0e2
6
+ metadata.gz: 904163faf9796c12fa9ab7865f46f70fb3f84e6974606a1a21f246e99eba68226dc28f4ccdb1c77a6a3cd2282dcc80a6d848e76849c7391664ec83b69175279e
7
+ data.tar.gz: 7e148da7a6b7cea1bbb14593081dceff1decb14d96d004181af925503560b35d47837954d5a9a755e1f73ecaec1f717cf545a13e4d056833920846b18b44df79
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- peatio-bitgo (1.1.5)
4
+ peatio-bitgo (1.1.6)
5
5
  activesupport (~> 5.2.3)
6
6
  better-faraday (~> 1.0.5)
7
7
  faraday (~> 0.15.4)
@@ -1,5 +1,5 @@
1
1
  module Peatio
2
2
  module Bitgo
3
- VERSION = "1.1.5"
3
+ VERSION = "1.1.6"
4
4
  end
5
5
  end
@@ -116,15 +116,15 @@ module Peatio
116
116
  end
117
117
 
118
118
  def trigger_webhook_event(event)
119
- currency_id = @wallet.fetch(:testnet).present? ? 't' + @currency.fetch(:id) : @currency.fetch(:id)
120
- return unless currency_id == event['coin'] && @wallet.fetch(:wallet_id) == event['wallet']
119
+ currency = @wallet.fetch(:testnet).present? ? 't' + @currency.fetch(:id) : @currency.fetch(:id)
120
+ return unless currency == event['coin'] && @wallet.fetch(:wallet_id) == event['wallet']
121
121
 
122
122
  if event['type'] == 'transfer'
123
123
  transactions = fetch_transfer!(event['transfer'])
124
124
  return { transfers: transactions }
125
125
  elsif event['type'] == 'address_confirmation'
126
126
  address_id = fetch_address_id(event['address'])
127
- return { address_id: address_id}
127
+ return { address_id: address_id, currency_id: currency_id }
128
128
  end
129
129
  end
130
130
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peatio-bitgo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nadia Ch., Maksym N.