bsv-wallet 0.3.1 → 0.3.3

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: d1640a355dfd2880bab6814c356768c848786260244726f539db357927c75f67
4
- data.tar.gz: c0aaf75e827d31dcaeada202b65f28f9b3bb0b89793724b503615d4512447e14
3
+ metadata.gz: 805b24a04420fa0daee7a9fc68ee08aff7d940c31268a2317b3f00bc9e254e8d
4
+ data.tar.gz: fe999637c2e283f9b8e73b2bc85bf9c28ae58ebca0651168d8d44e91fe3e5f2f
5
5
  SHA512:
6
- metadata.gz: fb8e922ac7496dbb755a6a2e8c1f392cadc78a27c23845045a190ff5d4c4e11b2112394647c40a0f5059c4634f949cc68732115e8327de463bf7eee4d519610c
7
- data.tar.gz: 9db7cc2da623b3731e903e5544aca2c265a7db9fc0e5b24c200027f11f4e5b11816ba6fc8bb7ac455c37bf748fc642289f01fcbfdc71ac4132192c84d9a11386
6
+ metadata.gz: f49ae42829e1895a44bf0f414a6367bea7ed27295355f563d785e16ebc2a351f172ea9390549eae0e2e9497ef9c40cdaecd4ae56ec82c15fccbf681edc1d3019
7
+ data.tar.gz: 2d74586aa8cfc467d56da95834cf03830b90a1f7e7990ed462c7d8529f7c2e0f54f47b0061a05cddf3fa6e0c719ee1abbb01dad45394848c0b6229b33e4237c4
@@ -2,6 +2,6 @@
2
2
 
3
3
  module BSV
4
4
  module WalletInterface
5
- VERSION = '0.3.1'
5
+ VERSION = '0.3.3'
6
6
  end
7
7
  end
@@ -598,6 +598,7 @@ module BSV
598
598
  txid = tx.txid_hex
599
599
  status = args.dig(:options, :no_send) ? 'nosend' : 'completed'
600
600
 
601
+ @storage.store_transaction(txid, tx.to_hex)
601
602
  store_action(tx, args, status: status)
602
603
  store_tracked_outputs(txid, tx, args[:outputs])
603
604
 
@@ -685,11 +686,11 @@ module BSV
685
686
 
686
687
  def store_proofs_from_beef(beef)
687
688
  beef.transactions.each do |beef_tx|
688
- next unless beef_tx.transaction&.merkle_path
689
+ next unless beef_tx.transaction
689
690
 
690
691
  txid_hex = beef_tx.transaction.txid_hex
691
- @proof_store.store_proof(txid_hex, beef_tx.transaction.merkle_path)
692
692
  @storage.store_transaction(txid_hex, beef_tx.transaction.to_hex)
693
+ @proof_store.store_proof(txid_hex, beef_tx.transaction.merkle_path) if beef_tx.transaction.merkle_path
693
694
  end
694
695
  end
695
696
 
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.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Bettison