keoken 0.2.5 → 0.2.6

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: b4ea5523c0fd45ac39e9be7833c277408f65d3eb7a9404bbaa0cd5669f27d289
4
- data.tar.gz: acf24ac884bd5045d625be738969124ac6e7baeccb63ae0dee40a3bd044c299f
3
+ metadata.gz: 29d51ac3b604a27b5362f52d8f2ba9e3f81f65d0d2e0c3baa673ebfc258b93cf
4
+ data.tar.gz: 9882d25399c16a712b3696b0a14a72c2dc5309c72221cd7b27ecbf5a2d74dcd2
5
5
  SHA512:
6
- metadata.gz: c00f1d0c01500fd9aa3a38e6029609f3320c91df74515b98fc9b78b4c0139d0b301b6318007e6e8b9da6398237c4e6e1cc463e05045fc0e7e492ed309e4fc290
7
- data.tar.gz: 712d295795631f21fa1d201271685b5b781b089a1eb3e4248606512746ee410c5e59bf7cb5eb08136f4ac39d850ec37724be7d080ae22f7907f924a92f8b7977
6
+ metadata.gz: 66d5484853ad4caeb69ed2a7e5962458d28b5ec194ae11eae5ecfe0bd617baad8742512fc5cd5b7d2252a0ccff7b3e162b7cf8735edeb3e1bfaeace74d9a5e4c
7
+ data.tar.gz: a0cd9a77f78f8206156ebbdf7ccc83d592637517578482a1dc64f54277d9fcb91808cf98ffe74114f4fbb8faa70578a886695631df098548c980469711640c4b
data/Gemfile.lock CHANGED
@@ -7,7 +7,7 @@ GIT
7
7
  PATH
8
8
  remote: .
9
9
  specs:
10
- keoken (0.2.4)
10
+ keoken (0.2.5)
11
11
  bitcoin-ruby (~> 0.0.18)
12
12
 
13
13
  GEM
@@ -46,13 +46,13 @@ module Keoken
46
46
  address_n: path,
47
47
  prev_index: input[:position],
48
48
  prev_hash: input[:tx_id],
49
- amount: input[:input_amount]
49
+ amount: input[:input_amount].to_s
50
50
  }
51
51
  end,
52
52
  outputs: [
53
53
  {
54
54
  address: Cashaddress.from_legacy(address),
55
- amount: output_amount,
55
+ amount: output_amount.to_s,
56
56
  script_type: 'PAYTOADDRESS'
57
57
  },
58
58
  {
@@ -72,18 +72,18 @@ module Keoken
72
72
  address_n: path,
73
73
  prev_index: input[:position],
74
74
  prev_hash: input[:tx_id],
75
- amount: input[:input_amount]
75
+ amount: input[:input_amount].to_s
76
76
  }
77
77
  end,
78
78
  outputs: [
79
79
  {
80
80
  address: Cashaddress.from_legacy(address),
81
- amount: output_amount,
81
+ amount: output_amount.to_s,
82
82
  script_type: 'PAYTOADDRESS'
83
83
  },
84
84
  {
85
85
  address: Cashaddress.from_legacy(addr2),
86
- amount: output_amount_to_addr2,
86
+ amount: output_amount_to_addr2.to_s,
87
87
  script_type: 'PAYTOADDRESS'
88
88
  },
89
89
  {
@@ -1,3 +1,3 @@
1
1
  module Keoken
2
- VERSION = '0.2.5'.freeze
2
+ VERSION = '0.2.6'.freeze
3
3
  end
data/spec/keoken_spec.rb CHANGED
@@ -209,7 +209,7 @@ describe Keoken do
209
209
  [
210
210
  {
211
211
  address_n: [44, 145, 0, 0, 0],
212
- amount: 8985999,
212
+ amount: '8985999',
213
213
  prev_hash: '448a9356f6317eeaa9581f9a39d41431ac74aa2b73438c01e1d522543d14e8da',
214
214
  prev_index: 1
215
215
  }
@@ -218,7 +218,7 @@ describe Keoken do
218
218
  [
219
219
  {
220
220
  address: 'bitcoincash:qpxrq63y6kz2wphm2nfsh6z23yvjmz7avcc5wsgruw',
221
- amount: 8757229,
221
+ amount: '8757229',
222
222
  script_type: 'PAYTOADDRESS'
223
223
  },
224
224
  {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keoken
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bitex