File tree Expand file tree Collapse file tree 2 files changed +18
-17
lines changed
Extensions/BDK+Extensions Expand file tree Collapse file tree 2 files changed +18
-17
lines changed Original file line number Diff line number Diff line change @@ -31,23 +31,6 @@ extension Network {
31
31
}
32
32
}
33
33
34
- extension Network {
35
- var url : String {
36
- switch self {
37
- case . bitcoin:
38
- Constants . Config. EsploraServerURLNetwork. Bitcoin. allValues. first ?? " "
39
- case . testnet:
40
- Constants . Config. EsploraServerURLNetwork. Testnet. allValues. first ?? " "
41
- case . signet:
42
- Constants . Config. EsploraServerURLNetwork. Signet. allValues. first ?? " "
43
- case . regtest:
44
- Constants . Config. EsploraServerURLNetwork. Regtest. allValues. first ?? " "
45
- case . testnet4:
46
- Constants . Config. EsploraServerURLNetwork. Testnet4. allValues. first ?? " "
47
- }
48
- }
49
- }
50
-
51
34
#if DEBUG
52
35
let mockKeyClientNetwork = Network . regtest
53
36
#endif
Original file line number Diff line number Diff line change 7
7
8
8
import Foundation
9
9
import SwiftUI
10
+ import BitcoinDevKit
10
11
11
12
struct Constants {
12
13
struct Config {
@@ -76,3 +77,20 @@ struct Constants {
76
77
}
77
78
}
78
79
}
80
+
81
+ extension Network {
82
+ var url : String {
83
+ switch self {
84
+ case . bitcoin:
85
+ Constants . Config. EsploraServerURLNetwork. Bitcoin. allValues. first ?? " "
86
+ case . testnet:
87
+ Constants . Config. EsploraServerURLNetwork. Testnet. allValues. first ?? " "
88
+ case . signet:
89
+ Constants . Config. EsploraServerURLNetwork. Signet. allValues. first ?? " "
90
+ case . regtest:
91
+ Constants . Config. EsploraServerURLNetwork. Regtest. allValues. first ?? " "
92
+ case . testnet4:
93
+ Constants . Config. EsploraServerURLNetwork. Testnet4. allValues. first ?? " "
94
+ }
95
+ }
96
+ }
You can’t perform that action at this time.
0 commit comments