openassets-ruby 0.4.4 → 0.4.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 +4 -4
- data/lib/openassets/transaction/transaction_builder.rb +2 -5
- data/lib/openassets/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38a7d1efd4f24d1f1ebee399588b9f5bed87046c
|
4
|
+
data.tar.gz: aba53db228cc09483dcfc5b13c06e7b1f92dc46c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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)
|
data/lib/openassets/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2016-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bitcoin-ruby
|