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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/peatio/bitgo/version.rb +1 -1
- data/lib/peatio/bitgo/wallet.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86220d36116809ca10b6dc07e520b63d16e8cb46133556632ceb9fb7b27588b5
|
4
|
+
data.tar.gz: de3d180c5abaa1f7d9e774816846c45b8a15e7e876b62ed63aa5e30bbc01483a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41f8aef89ec31cbac784ee0ab6b8ad94586f6cc37c1e07545c528b40af2d7d5b2d44cc63844e65594ce2c1e0fcbedec5ddc7c19d2d748bb741bb8d6c83965509
|
7
|
+
data.tar.gz: 4472cd42c2e4a210e874696f333a80149ec2e73e832560c1d0bd02d08e89f79e42c3d7e4e7c6d2249ccec3dafb66716bb35a7de15a83f3cb3c0e53384d7ca1f2
|
data/Gemfile.lock
CHANGED
data/lib/peatio/bitgo/version.rb
CHANGED
data/lib/peatio/bitgo/wallet.rb
CHANGED
@@ -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(
|
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.
|
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
|
11
|
+
date: 2020-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|