File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed
Bitkit/Views/Wallets/Activity Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,6 @@ struct ActivityExplorerView: View {
3737 private func loadTransactionDetails( ) async {
3838 guard let onchain else { return }
3939
40- isLoadingTransaction = true
41-
4240 do {
4341 let details = try await AddressChecker . getTransaction ( txid: onchain. txId)
4442 await MainActor . run {
@@ -118,12 +116,23 @@ struct ActivityExplorerView: View {
118116 content: onchain. txId,
119117 )
120118
121- InfoSection (
122- title: " INPUT " ,
123- content: " \( onchain. txId) :0 " ,
124- )
125-
126119 if let txDetails {
120+ CaptionText ( " Inputs ( \( txDetails. vin. count) ) " )
121+ . textCase ( . uppercase)
122+ . padding ( . bottom, 8 )
123+ VStack ( alignment: . leading, spacing: 4 ) {
124+ ForEach ( Array ( txDetails. vin. enumerated ( ) ) , id: \. offset) { _, input in
125+ let txId = input. txid ?? " "
126+ let vout = input. vout ?? 0
127+ BodySSBText ( " \( txId) : \( vout) " )
128+ . lineLimit ( 1 )
129+ . truncationMode ( . middle)
130+ }
131+ }
132+
133+ Divider ( )
134+ . padding ( . vertical, 16 )
135+
127136 CaptionText ( " OUTPUTS ( \( txDetails. vout. count) ) " )
128137 . textCase ( . uppercase)
129138 . padding ( . bottom, 8 )
You can’t perform that action at this time.
0 commit comments