openassets-ruby 0.4.4 → 0.4.5

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: 8dcc78b29ac4f1050971c8a6b4d99f46f1e080b0
4
- data.tar.gz: 6d710fe280bc83e1d7a50f65f943ab2214ef5899
3
+ metadata.gz: 38a7d1efd4f24d1f1ebee399588b9f5bed87046c
4
+ data.tar.gz: aba53db228cc09483dcfc5b13c06e7b1f92dc46c
5
5
  SHA512:
6
- metadata.gz: 6c6fa61c4e8dff1329fdcc7b6d3c2b18c4b03d1816350f79a00c1e85d9d66caf62df6b41fde0cbe89a27bc3d722cadfc34d22be44b08868f5e235d6be0b3d422
7
- data.tar.gz: e04f77dd8aec914ecdda710b883726df047e3c54d735576584e139abb6cbbb19c68ae802996624e29c728db6950265eba27bd3eef66b22dab527d5a59eb60e4a
6
+ metadata.gz: 3f290f1e69367ad04133c7c43787c9e65b552a5b51a2ef59e91912edf640c4e8a51c438c47dd18d0a14dd90eb6c052000f5ca527da2d97f3d873647452518e52
7
+ data.tar.gz: 31e8c748e7a9267e15c2e9489cfc017976515a2c1434c667fe156c7d08eebfa0fc2bca910310e1da67d2d3cbd2f2a81f591a03a8a75f29ae9b1bd4e8c70d8437
@@ -128,9 +128,7 @@ module OpenAssets
128
128
  # @param [String] address The Bitcoin address.
129
129
  # @return [Bitcoin::Protocol::TxOut] colored output
130
130
  def create_colored_output(address)
131
- hash160 = Bitcoin.hash160_from_address(address)
132
- Bitcoin::Protocol::TxOut.new(@amount,
133
- Bitcoin::Script.new(Bitcoin::Script.to_hash160_script(hash160)).to_payload)
131
+ Bitcoin::Protocol::TxOut.new(@amount, Bitcoin::Script.new(Bitcoin::Script.to_address_script(address)).to_payload)
134
132
  end
135
133
 
136
134
  # create marker output.
@@ -148,8 +146,7 @@ module OpenAssets
148
146
  # @return [Bitcoin::Protocol::TxOut] an uncolored output.
149
147
  def create_uncolored_output(address, value)
150
148
  raise DustOutputError if value < @amount
151
- hash160 = Bitcoin.hash160_from_address(address)
152
- Bitcoin::Protocol::TxOut.new(value, Bitcoin::Script.new(Bitcoin::Script.to_hash160_script(hash160)).to_payload)
149
+ Bitcoin::Protocol::TxOut.new(value, Bitcoin::Script.new(Bitcoin::Script.to_address_script(address)).to_payload)
153
150
  end
154
151
 
155
152
  def transfer(asset_transfer_specs, btc_transfer_spec, fees)
@@ -1,3 +1,3 @@
1
1
  module OpenAssets
2
- VERSION = '0.4.4'
2
+ VERSION = '0.4.5'
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.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - azuchi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-23 00:00:00.000000000 Z
11
+ date: 2016-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bitcoin-ruby