bsv-wallet 0.3.0 → 0.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aeb3dc8d2b6c485d81d28e540b432688b65b370be001f545d7fbe0e2adbff34d
4
- data.tar.gz: 9f9ce64fe90d7d386c1823c4e698ee268e913870a8192135794d8d6f0ddd7643
3
+ metadata.gz: 197c07235914aab1378df5a5bab47ca99d58d702e3f1eecd461e945239ae833c
4
+ data.tar.gz: 627369185e81639e43082676cd450cdeaec4605b6ddd5bcd4015f465ed5ec988
5
5
  SHA512:
6
- metadata.gz: 8c49d1e84cc279ce6ec065bcf914d83d16590ded06601459979d0e2cd8084b95d678121fa8c4c36f27c68243ee2337b88857f77d1e09a79f3153e5800a76d54d
7
- data.tar.gz: 83c9ae27c5ca5b09731d81e9aedbc3c981310675f6d2052a229c2da8215b7e13e95e5a8f72c39418ec20f42e4a95478459394f051c3ab32b99578066ccf0504e
6
+ metadata.gz: f63f97d59d59d8288e09b01912730157fe3afca0e5ab17770153b3a995aaf0a3b7665d2891e6692b3bee251adeeadfb9497a6bd7fb479aae6fd6aef2a4c68746
7
+ data.tar.gz: 75bc37e08149dcb0efb5fdee7a990b2f4fa1654698c18bc2fcb93a349dfe223aa32469ec8e0d106b3e7d2e62fc361ec88b0d3e39e0b580397ecc674ed5f864e0
@@ -2,6 +2,6 @@
2
2
 
3
3
  module BSV
4
4
  module WalletInterface
5
- VERSION = '0.3.0'
5
+ VERSION = '0.3.2'
6
6
  end
7
7
  end
@@ -183,6 +183,7 @@ module BSV
183
183
  tx = extract_subject_transaction(beef)
184
184
 
185
185
  store_proofs_from_beef(beef)
186
+ @storage.store_transaction(tx.txid_hex, tx.to_hex)
186
187
  process_internalize_outputs(tx, args[:outputs])
187
188
  store_action(tx, args, status: 'completed')
188
189
  { accepted: true }
@@ -684,11 +685,11 @@ module BSV
684
685
 
685
686
  def store_proofs_from_beef(beef)
686
687
  beef.transactions.each do |beef_tx|
687
- next unless beef_tx.transaction&.merkle_path
688
+ next unless beef_tx.transaction
688
689
 
689
690
  txid_hex = beef_tx.transaction.txid_hex
690
- @proof_store.store_proof(txid_hex, beef_tx.transaction.merkle_path)
691
691
  @storage.store_transaction(txid_hex, beef_tx.transaction.to_hex)
692
+ @proof_store.store_proof(txid_hex, beef_tx.transaction.merkle_path) if beef_tx.transaction.merkle_path
692
693
  end
693
694
  end
694
695
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bsv-wallet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Bettison