onchain 1.0.5 → 1.0.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 +4 -4
- data/lib/onchain/payments.rb +2 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7b3fb3cb1af44f4f907f75f9a156928150ff520
|
4
|
+
data.tar.gz: 62b30591c6eea183a2c904c6dac349947bbf9123
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2542f668514e9b95a9a6c5d5af6bf5c68c0b603f35395b9b7119ebf83f44b2f201e3df77320c078b75fc6c432222bd5e019f404b71150e2305123d36675d6c1c
|
7
|
+
data.tar.gz: 930f57d3e7f6f4ec79f7d19062b28a86557c3d9d6021466807a5080238587658dc0ae224b413522e3c97a41fda03cf4bf0a473b61c85208bb404b70ceb3dadec
|
data/lib/onchain/payments.rb
CHANGED
@@ -47,11 +47,8 @@ class OnChain
|
|
47
47
|
|
48
48
|
payments.each do |payment|
|
49
49
|
|
50
|
-
|
51
|
-
|
52
|
-
txout = Bitcoin::Protocol::TxOut.new(payment[1], Bitcoin::Script.from_string(
|
53
|
-
"OP_DUP OP_HASH160 #{addr} " +
|
54
|
-
"OP_EQUALVERIFY OP_CHECKSIG").to_payload)
|
50
|
+
txout = Bitcoin::Protocol::TxOut.new(payment[1],
|
51
|
+
Bitcoin::Script.to_address_script(payment[0]))
|
55
52
|
|
56
53
|
tx.add_out(txout)
|
57
54
|
end
|