peatio-bitgo 1.1.3 → 1.1.4
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: 0bf98903c7304e77f6cdc28f1f41c15a8bb8fb247e6edde49e146f0dc49c5690
|
4
|
+
data.tar.gz: 1848b2e16408c9d2ea516388e77fb6c16a314bbc5b4ae6c300da1f492e545c57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70a230d27976389a7eaeed25506bd1385508bb95fd82742487b39861b31854301856c65ef772ccc0a43d82359f37a9464fa70981254d42ebf80ead10acab6dd7
|
7
|
+
data.tar.gz: e4987b11326c0c8d1f7d2b7b58bb8c1fa8e1becc88772aff96d72d4e0b47b987e17e8930179b3b286ad76ee0dd43aebb6e3adaec9faa06ed32d4a1170e020a98
|
data/Gemfile.lock
CHANGED
data/lib/peatio/bitgo/version.rb
CHANGED
data/lib/peatio/bitgo/wallet.rb
CHANGED
@@ -36,7 +36,7 @@ module Peatio
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def create_transaction!(transaction, options = {})
|
39
|
-
currency_options = @currency.fetch(:options).slice(:gas_limit, :gas_price)
|
39
|
+
currency_options = @currency.fetch(:options).slice(:gas_limit, :gas_price, :erc20_contract_address)
|
40
40
|
|
41
41
|
if currency_options[:gas_limit].present? && currency_options[:gas_price].present?
|
42
42
|
options.merge!(currency_options)
|
@@ -77,6 +77,7 @@ module Peatio
|
|
77
77
|
|
78
78
|
def create_eth_transaction(transaction, options = {})
|
79
79
|
amount = convert_to_base_unit(transaction.amount)
|
80
|
+
hop = true unless options.slice(:erc20_contract_address).present?
|
80
81
|
|
81
82
|
txid = client.rest_api(:post, "#{currency_id}/wallet/#{wallet_id}/sendcoins", {
|
82
83
|
address: transaction.to_address.to_s,
|
@@ -84,7 +85,7 @@ module Peatio
|
|
84
85
|
walletPassphrase: bitgo_wallet_passphrase,
|
85
86
|
gas: options.fetch(:gas_limit).to_i,
|
86
87
|
gasPrice: options.fetch(:gas_price).to_i,
|
87
|
-
hop:
|
88
|
+
hop: hop
|
88
89
|
}.compact).fetch('txid')
|
89
90
|
|
90
91
|
transaction.hash = normalize_txid(txid)
|
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.1.
|
4
|
+
version: 1.1.4
|
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-05-
|
11
|
+
date: 2020-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|