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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/peatio/bitgo/version.rb +1 -1
- data/lib/peatio/bitgo/wallet.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e6ffc9f6a29d20c55aa26f8a994716ce498de62148155aa0c9e913317b22556
|
4
|
+
data.tar.gz: c555fb0d1b789975bda7a2c66b5b603495595e2fbd444190a7d09482ecf6a18c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 904163faf9796c12fa9ab7865f46f70fb3f84e6974606a1a21f246e99eba68226dc28f4ccdb1c77a6a3cd2282dcc80a6d848e76849c7391664ec83b69175279e
|
7
|
+
data.tar.gz: 7e148da7a6b7cea1bbb14593081dceff1decb14d96d004181af925503560b35d47837954d5a9a755e1f73ecaec1f717cf545a13e4d056833920846b18b44df79
|
data/Gemfile.lock
CHANGED
data/lib/peatio/bitgo/version.rb
CHANGED
data/lib/peatio/bitgo/wallet.rb
CHANGED
@@ -116,15 +116,15 @@ module Peatio
|
|
116
116
|
end
|
117
117
|
|
118
118
|
def trigger_webhook_event(event)
|
119
|
-
|
120
|
-
return unless
|
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
|
|