onchain 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/onchain/payments.rb +2 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ef34e9db860ff4a52663147bb67095f2ed06cb1
4
- data.tar.gz: faad7a9284ad352abdccc7e8365f7bfe772b0d78
3
+ metadata.gz: a7b3fb3cb1af44f4f907f75f9a156928150ff520
4
+ data.tar.gz: 62b30591c6eea183a2c904c6dac349947bbf9123
5
5
  SHA512:
6
- metadata.gz: c053604f3de2d0c323a4c735e9338f6e8cf5f808ab8478c2111f067f8b2c860950578919bf3e1f5af0b3a23c54cd84d17365d95317427c2078233490d7a18d09
7
- data.tar.gz: a011133d23d2190a8e694cfbb34be5917e2194d833d5b7513c6e64f231b0c77ec028fde447c9ad516210a94eec523bab05957d0d12642a0a8fa41f9cbf7cbfd4
6
+ metadata.gz: 2542f668514e9b95a9a6c5d5af6bf5c68c0b603f35395b9b7119ebf83f44b2f201e3df77320c078b75fc6c432222bd5e019f404b71150e2305123d36675d6c1c
7
+ data.tar.gz: 930f57d3e7f6f4ec79f7d19062b28a86557c3d9d6021466807a5080238587658dc0ae224b413522e3c97a41fda03cf4bf0a473b61c85208bb404b70ceb3dadec
@@ -47,11 +47,8 @@ class OnChain
47
47
 
48
48
  payments.each do |payment|
49
49
 
50
- addr = Bitcoin.hash160_from_address(payment[0])
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onchain
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Purton