react-native-zcash 0.2.2 → 0.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # React Native Zcash
2
2
 
3
+ ## 0.2.3 (2022-08-07)
4
+
5
+ - iOS: Handle potential throw in synchronizer.latestHeight()
6
+
3
7
  ## 0.2.2 (2022-06-10)
4
8
 
5
9
  - Upgrade SDKs to NU5 compatible versions
package/ios/RNZcash.swift CHANGED
@@ -398,7 +398,11 @@ class WalletSynchronizer : NSObject {
398
398
  self.processorState.lastDownloadedHeight = self.synchronizer.latestScannedHeight
399
399
  self.processorState.scanProgress = 100
400
400
  self.processorState.lastScannedHeight = self.synchronizer.latestScannedHeight
401
- self.processorState.networkBlockHeight = try! self.synchronizer.latestHeight()
401
+ do {
402
+ try self.processorState.networkBlockHeight = self.synchronizer.latestHeight()
403
+ } catch {
404
+ // ignore if synchronizer throws
405
+ }
402
406
  }
403
407
 
404
408
  if self.processorState.lastDownloadedHeight != prevLastDownloadedHeight || self.processorState.scanProgress != prevScanProgress ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-zcash",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Zcash library for React Native",
5
5
  "homepage": "https://github.com/EdgeApp/react-native-zcash",
6
6
  "repository": {