peatio-bitgo 1.0.0 → 1.0.1

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: 48c2c390acb4922bd602b2ab5a426552b3427ed1221f9abf704e8fb04ba4b9bc
4
- data.tar.gz: dea150704c82b90e18f621b6db976e909cef707c95efb598438ab2eeaa9986cd
3
+ metadata.gz: 86220d36116809ca10b6dc07e520b63d16e8cb46133556632ceb9fb7b27588b5
4
+ data.tar.gz: de3d180c5abaa1f7d9e774816846c45b8a15e7e876b62ed63aa5e30bbc01483a
5
5
  SHA512:
6
- metadata.gz: 3dbe30292603bdc9e590de8a516e9039179a180b2f305f0daf99075ca252d0e969b09454ab30401f8aeb02c329d7138cb84cee1a3b23c8810d4c617679575de2
7
- data.tar.gz: acb680e00ac6d62bef9388eaef7b657a6c644f3482f784361e7d2ee795ece07a2858a29cece481c741be2af988164fbf11222b2e8798363343efbfc95493b667
6
+ metadata.gz: 41f8aef89ec31cbac784ee0ab6b8ad94586f6cc37c1e07545c528b40af2d7d5b2d44cc63844e65594ce2c1e0fcbedec5ddc7c19d2d748bb741bb8d6c83965509
7
+ data.tar.gz: 4472cd42c2e4a210e874696f333a80149ec2e73e832560c1d0bd02d08e89f79e42c3d7e4e7c6d2249ccec3dafb66716bb35a7de15a83f3cb3c0e53384d7ca1f2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- peatio-bitgo (1.0.0)
4
+ peatio-bitgo (1.0.1)
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.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
@@ -129,14 +129,15 @@ module Peatio
129
129
 
130
130
  transaction = Peatio::Transaction.new(
131
131
  currency_id: @currency.fetch(:id),
132
- amount: convert_from_base_unit(response['valueString']),
133
- hash: response['txid'],
132
+ amount: convert_from_base_unit(entry['valueString']),
133
+ hash: normalize_txid(response['txid']),
134
134
  to_address: to_address,
135
135
  block_number: response['height'],
136
136
  # TODO: Add sendmany support
137
137
  txout: 0,
138
138
  status: state
139
139
  )
140
+
140
141
  transaction if transaction.valid?
141
142
  end.compact
142
143
  rescue Bitgo::Client::Error => e
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peatio-bitgo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nadia Ch., Maksym N.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-26 00:00:00.000000000 Z
11
+ date: 2020-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport