mixin_bot 0.3.4 → 0.3.5

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: 0d2d1a5483fbd7210ab5f4e9a08697c0ed2d6d1f90975192b9727d36bc4ad71f
4
- data.tar.gz: 3d412e3b95814a3ac245d9ab46b0fa1dcfd4571b05903f363e5841b1108bb958
3
+ metadata.gz: 8282148099d4fa3128ae77f40fbefbd5712edeacebbd10fc286055b463427f40
4
+ data.tar.gz: d8e8b3511fb866dd76004534d2629f6edb362d82177d8a717a5f7a797c532b8e
5
5
  SHA512:
6
- metadata.gz: c7503cd89d0f30a0517b6ce1022a6aaabf6d66737f16d38b7b1011fa342fab22e5cd3bd658516bf4e3faf784a06235ead91dd654a16f3b21d2df3f864bc00514
7
- data.tar.gz: b5a3ec55cd38d404c8e6a458668927e3047c932ed8e7723b92fe8a701790ac61f2f81a3eef30e6e2ad457222290435e32856637b1aee8e9a4e141107834364a9
6
+ metadata.gz: ac472ad54cc28559dec43283aa12691984fb5dd4f1d4dc5c2356b72716cfedd754d209b4b37f7ca4986408e7155523a2a41caeeec140c9ab6dcd00704e7b0d2e
7
+ data.tar.gz: 414a6e52690819775032c7abd45d2cc4e885bc0d12a195ba87e4d5bd945ebac1eb8ffad7b458d3f3faf7cbfba5cccc157b5c5f6cab1517685dc28e15041389fe
@@ -261,15 +261,21 @@ module MixinBot
261
261
 
262
262
  outputs = []
263
263
  output0 = create_output(receivers: receivers, index: 0)['data']
264
- output0['amount'] = format('%<amount>.8f', amount: amount)
265
- output0['script'] = build_threshold_script(receivers.length)
266
- outputs << output0
264
+ outputs << {
265
+ 'amount': format('%<amount>.8f', amount: amount),
266
+ 'script': build_threshold_script(receivers.length),
267
+ 'mask': output0['mask'],
268
+ 'keys': output0['keys']
269
+ }
267
270
 
268
271
  if input_amount > amount
269
272
  output1 = create_output(receivers: senders, index: 1)['data']
270
- output1['amount'] = format('%<amount>.8f', amount: input_amount - amount)
271
- output1['script'] = build_threshold_script(utxos[0]['threshold'].to_i)
272
- outputs << output1
273
+ outputs << {
274
+ 'amount': format('%<amount>.8f', amount: input_amount - amount),
275
+ 'script': build_threshold_script(threshold.to_i),
276
+ 'mask': output1['mask'],
277
+ 'keys': output1['keys']
278
+ }
273
279
  end
274
280
 
275
281
  extra = Digest.hexencode memo.to_s.slice(0, 140)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MixinBot
4
- VERSION = '0.3.4'
4
+ VERSION = '0.3.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixin_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - an-lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-26 00:00:00.000000000 Z
11
+ date: 2021-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print