peatio-decredcoin 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10c0707217df3d4e8c7a12a93552a4dd6d739d49444234f68ad37f8235f9ad54
4
- data.tar.gz: a14cc442dd2ad6ee00a391eff8795a4fa8399f74c0e6505b2edb1c70ea7ef1db
3
+ metadata.gz: bdd4576af52bb55c83e9efa792861342290f34b717255a4a166e2dfbcc025ddd
4
+ data.tar.gz: 7960d3c91a761780b13f3f4b37c2687ca4aa0d0c9968701e3a82537f0a598eb6
5
5
  SHA512:
6
- metadata.gz: 870728db1f83420ba77d61ce8e76527059fe9db08a0f2ca8a92ec278effa2b6f04d615590c736e2538440f7aca97259e0e0dd67cea572c5306ffbd868760f263
7
- data.tar.gz: c474c58e78d31fb8d4336a07e82e4c830d17a09216d1cb7131c810f3a20a4ca0ff46910ba5e12e4b70d8d948fbd4584039e3028d4a29f8eeda089d31747444ff
6
+ metadata.gz: dfa5b3e27be8ea8f4709215fce0ff8024f40a87bf076532af0a82fa9156143eafbde825387f5125c645a6cf1dc684c75caa25121373b39c0c733d70641e55694
7
+ data.tar.gz: '08e8497ee99301a6f6c459350e2281245a545f0d6a796de20bf790711193299725dd99e3f0d3157deeb6d260acbd8daad5ced9cc6e725a8e6c5021a94db79a1f'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- peatio-decredcoin (2.0.3)
4
+ peatio-decredcoin (2.1.1)
5
5
  activesupport (~> 5.2.3)
6
6
  better-faraday (~> 1.0.5)
7
7
  faraday (~> 0.17)
@@ -1,5 +1,5 @@
1
1
  module Peatio
2
2
  module Decredcoin
3
- VERSION = "2.1.1".freeze
3
+ VERSION = "2.1.2".freeze
4
4
  end
5
5
  end
@@ -32,13 +32,17 @@ module Peatio
32
32
  end
33
33
 
34
34
  def create_transaction!(transaction, options = {})
35
+ # unlock wallet for 10 seconds
36
+ client.json_rpc(:walletpassphrase,
37
+ [
38
+ options[:passphrase],
39
+ options[:seconds]
40
+ ])
41
+ # create a transaction
35
42
  txid = client.json_rpc(:sendtoaddress,
36
43
  [
37
44
  transaction.to_address,
38
- transaction.amount,
39
- '',
40
- '',
41
- options[:subtract_fee].to_s == 'true' # subtract fee from transaction amount.
45
+ transaction.amount.to_f
42
46
  ])
43
47
  transaction.hash = txid
44
48
  transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peatio-decredcoin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anuj Dhiman