Flexa 1.0.8
- Flexa bumped to 1.0.8 - Hotfix for the account hash
This commit is contained in:
parent
6aa8a93f9b
commit
1d5d9a6407
|
@ -92,7 +92,7 @@ let package = Package(
|
||||||
.package(url: "https://github.com/zcash-hackworks/MnemonicSwift", from: "2.2.4"),
|
.package(url: "https://github.com/zcash-hackworks/MnemonicSwift", from: "2.2.4"),
|
||||||
.package(url: "https://github.com/Electric-Coin-Company/zcash-swift-wallet-sdk", from: "2.2.7"),
|
.package(url: "https://github.com/Electric-Coin-Company/zcash-swift-wallet-sdk", from: "2.2.7"),
|
||||||
.package(url: "https://github.com/firebase/firebase-ios-sdk", from: "10.27.0"),
|
.package(url: "https://github.com/firebase/firebase-ios-sdk", from: "10.27.0"),
|
||||||
.package(url: "https://github.com/flexa/flexa-ios.git", from: "1.0.7"),
|
.package(url: "https://github.com/flexa/flexa-ios.git", from: "1.0.8"),
|
||||||
.package(url: "https://github.com/pacu/zcash-swift-payment-uri", from: "0.1.0-beta.9"),
|
.package(url: "https://github.com/pacu/zcash-swift-payment-uri", from: "0.1.0-beta.9"),
|
||||||
.package(url: "https://github.com/airbnb/lottie-spm.git", from: "4.5.0")
|
.package(url: "https://github.com/airbnb/lottie-spm.git", from: "4.5.0")
|
||||||
],
|
],
|
||||||
|
|
|
@ -16,12 +16,15 @@ import CryptoKit
|
||||||
import Generated
|
import Generated
|
||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
|
/// This is a quick fix for Flexa changing the balances of the account from an expected value to 0.
|
||||||
|
var accountHashInMemoryUUID = UUID()
|
||||||
|
|
||||||
enum Constants {
|
enum Constants {
|
||||||
static let zecHash = "bip122:00040fe8ec8471911baa1db1266ea15d"
|
static let zecHash = "bip122:00040fe8ec8471911baa1db1266ea15d"
|
||||||
static let zecId = "\(Constants.zecHash)/slip44:133"
|
static let zecId = "\(Constants.zecHash)/slip44:133"
|
||||||
|
|
||||||
static func assetAccountHash() -> String {
|
static func assetAccountHash() -> String {
|
||||||
let uuid = UUID()
|
let uuid = accountHashInMemoryUUID
|
||||||
let uuidString = uuid.uuidString
|
let uuidString = uuid.uuidString
|
||||||
let data = Data(uuidString.utf8)
|
let data = Data(uuidString.utf8)
|
||||||
let hash = SHA256.hash(data: data)
|
let hash = SHA256.hash(data: data)
|
||||||
|
@ -54,6 +57,8 @@ extension FlexaHandlerClient: DependencyKey {
|
||||||
isPrepared.value = true
|
isPrepared.value = true
|
||||||
},
|
},
|
||||||
open: {
|
open: {
|
||||||
|
accountHashInMemoryUUID = UUID()
|
||||||
|
|
||||||
if !isPrepared.value {
|
if !isPrepared.value {
|
||||||
FlexaHandlerClient.prepare()
|
FlexaHandlerClient.prepare()
|
||||||
isPrepared.value = true
|
isPrepared.value = true
|
||||||
|
|
|
@ -2232,7 +2232,7 @@
|
||||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||||
CODE_SIGN_ENTITLEMENTS = "secant-distrib.entitlements";
|
CODE_SIGN_ENTITLEMENTS = "secant-distrib.entitlements";
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 2;
|
CURRENT_PROJECT_VERSION = 3;
|
||||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||||
DEVELOPMENT_ASSET_PATHS = "\"secant/Preview Content\"";
|
DEVELOPMENT_ASSET_PATHS = "\"secant/Preview Content\"";
|
||||||
DEVELOPMENT_TEAM = RLPRR8CPQG;
|
DEVELOPMENT_TEAM = RLPRR8CPQG;
|
||||||
|
@ -2273,7 +2273,7 @@
|
||||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||||
CODE_SIGN_ENTITLEMENTS = "secant-distrib.entitlements";
|
CODE_SIGN_ENTITLEMENTS = "secant-distrib.entitlements";
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 2;
|
CURRENT_PROJECT_VERSION = 3;
|
||||||
DEVELOPMENT_ASSET_PATHS = "\"secant/Preview Content\"";
|
DEVELOPMENT_ASSET_PATHS = "\"secant/Preview Content\"";
|
||||||
DEVELOPMENT_TEAM = RLPRR8CPQG;
|
DEVELOPMENT_TEAM = RLPRR8CPQG;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
|
@ -2474,7 +2474,7 @@
|
||||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||||
CODE_SIGN_ENTITLEMENTS = "secant-distrib.entitlements";
|
CODE_SIGN_ENTITLEMENTS = "secant-distrib.entitlements";
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 2;
|
CURRENT_PROJECT_VERSION = 3;
|
||||||
DEVELOPMENT_ASSET_PATHS = "\"secant/Preview Content\"";
|
DEVELOPMENT_ASSET_PATHS = "\"secant/Preview Content\"";
|
||||||
DEVELOPMENT_TEAM = RLPRR8CPQG;
|
DEVELOPMENT_TEAM = RLPRR8CPQG;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
|
|
|
@ -86,8 +86,8 @@
|
||||||
"kind" : "remoteSourceControl",
|
"kind" : "remoteSourceControl",
|
||||||
"location" : "https://github.com/flexa/flexa-ios.git",
|
"location" : "https://github.com/flexa/flexa-ios.git",
|
||||||
"state" : {
|
"state" : {
|
||||||
"revision" : "746135db93da03605628380d86000d22b5bcbbfa",
|
"revision" : "5d33adf6507ea33e239f7fb8ec27978cf4e08243",
|
||||||
"version" : "1.0.7"
|
"version" : "1.0.8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue