openassets-ruby 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cb74b7ff102e4a38b524cd3ff774aa2716ebb7e
4
- data.tar.gz: 3d2870050fd2f78a9f49206db8d1d05612dca0c2
3
+ metadata.gz: be50c083e4513da8559ca4c6748ec100d117072b
4
+ data.tar.gz: a938bc5076c8973fb5c5ac67676ebb9b0e596d8c
5
5
  SHA512:
6
- metadata.gz: a8d86752cf95c1b7c1ed029a5722bea64463da46a8c210b9f0776f17832a73fff29591861f466f20c33e317b5a4ab12ceae6a442c213bd4ae39a2762a002d9fa
7
- data.tar.gz: 645bb2f400a2e4a440300d12de088762bc139335d578eea09a490b9464f087223de6052874c50b2d233ba730a62ed4f47e50d05152ba5e2d3eda2ae059a96495
6
+ metadata.gz: b3c4916cfadc0aa2725f75e8a69a6410d7fac1c618e12bab271b2edac3bc96c8c65d3b52b9b1cc386405f2b5fe776fa4f7805372d79dbb7e9133257f6a86401e
7
+ data.tar.gz: 01b65141ccffce115dffd58571651db370a418c4a48313959a07fe66860d773f94df66e97d3b1673c20bd2cce4638551b6a407900aa24eca6aa77ce526211c17
@@ -268,6 +268,19 @@ module OpenAssets
268
268
  # Add the marker output
269
269
  result << OpenAssets::Protocol::TransactionOutput.new(marker_output.value, marker_output.parsed_script, nil, 0, OpenAssets::Protocol::OutputType::MARKER_OUTPUT)
270
270
 
271
+ # remove invalid marker
272
+ remove_outputs = []
273
+ for i in (marker_output_index + 1)..(outputs.length-1)
274
+ marker_output_payload = OpenAssets::Protocol::MarkerOutput.parse_script(outputs[i].pk_script)
275
+ unless marker_output_payload.nil?
276
+ remove_outputs << outputs[i]
277
+ result << OpenAssets::Protocol::TransactionOutput.new(
278
+ outputs[i].value, outputs[i].parsed_script, nil, 0, OpenAssets::Protocol::OutputType::MARKER_OUTPUT)
279
+ next
280
+ end
281
+ end
282
+ remove_outputs.each{|o|outputs.delete(o)}
283
+
271
284
  # Add the transfer outputs
272
285
  input_enum = inputs.each
273
286
  input_units_left = 0
@@ -1,3 +1,3 @@
1
1
  module OpenAssets
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openassets-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - azuchi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-13 00:00:00.000000000 Z
11
+ date: 2016-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bitcoin-ruby