Skip to content

Commit 2d29136

Browse files
committed
fix errors
1 parent b0a1bac commit 2d29136

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

BDKSwiftExampleWallet/Extensions/BDK+Extensions/Balance+Extensions.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ extension Balance: Equatable {
1919
#if DEBUG
2020
extension Balance {
2121
static var mock = Self(
22-
immature: Amount.fromSat(fromSat: UInt64(100)),
23-
trustedPending: Amount.fromSat(fromSat: UInt64(200)),
24-
untrustedPending: Amount.fromSat(fromSat: UInt64(300)),
25-
confirmed: Amount.fromSat(fromSat: UInt64(21000)),
26-
trustedSpendable: Amount.fromSat(fromSat: UInt64(1_000_000)),
27-
total: Amount.fromSat(fromSat: UInt64(615_000_000))
22+
immature: Amount.fromSat(satoshi: UInt64(100)),
23+
trustedPending: Amount.fromSat(satoshi: UInt64(200)),
24+
untrustedPending: Amount.fromSat(satoshi: UInt64(300)),
25+
confirmed: Amount.fromSat(satoshi: UInt64(21000)),
26+
trustedSpendable: Amount.fromSat(satoshi: UInt64(1_000_000)),
27+
total: Amount.fromSat(satoshi: UInt64(615_000_000))
2828
)
2929
}
3030
#endif

BDKSwiftExampleWallet/Extensions/BDK+Extensions/SentAndReceivedValues+Extensions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import Foundation
1111
#if DEBUG
1212
extension SentAndReceivedValues {
1313
static var mock = Self(
14-
sent: Amount.fromSat(fromSat: UInt64(0)),
15-
received: Amount.fromSat(fromSat: UInt64(1_000_000))
14+
sent: Amount.fromSat(satoshi: UInt64(0)),
15+
received: Amount.fromSat(satoshi: UInt64(1_000_000))
1616
)
1717
}
1818
#endif

BDKSwiftExampleWallet/Service/BDK Service/BDKService.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,9 @@ private class BDKService {
333333
let txBuilder = try TxBuilder()
334334
.addRecipient(
335335
script: script,
336-
amount: Amount.fromSat(fromSat: amount)
336+
amount: Amount.fromSat(satoshi: amount)
337337
)
338-
.feeRate(feeRate: FeeRate.fromSatPerVb(satPerVb: feeRate))
338+
.feeRate(feeRate: FeeRate.fromSatPerVb(satVb: feeRate))
339339
.finish(wallet: wallet)
340340
return txBuilder
341341
}
@@ -527,12 +527,12 @@ extension BDKClient {
527527
fullScanWithInspector: { _ in },
528528
getAddress: { "tb1pd8jmenqpe7rz2mavfdx7uc8pj7vskxv4rl6avxlqsw2u8u7d4gfs97durt" },
529529
send: { _, _, _ in },
530-
calculateFee: { _ in Amount.fromSat(fromSat: UInt64(615)) },
530+
calculateFee: { _ in Amount.fromSat(satoshi: UInt64(615)) },
531531
calculateFeeRate: { _ in return UInt64(6.15) },
532532
sentAndReceived: { _ in
533533
return SentAndReceivedValues(
534-
sent: Amount.fromSat(fromSat: UInt64(20000)),
535-
received: Amount.fromSat(fromSat: UInt64(210))
534+
sent: Amount.fromSat(satoshi: UInt64(20000)),
535+
received: Amount.fromSat(satoshi: UInt64(210))
536536
)
537537
},
538538
buildTransaction: { _, _, _ in

BDKSwiftExampleWallet/View/Activity/TransactionListView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ struct TransactionListView: View {
2222
canonicalTx: .mock,
2323
isRedacted: true,
2424
sentAndReceivedValues: .init(
25-
sent: Amount.fromSat(fromSat: UInt64(0)),
26-
received: Amount.fromSat(fromSat: UInt64(0))
25+
sent: Amount.fromSat(satoshi: UInt64(0)),
26+
received: Amount.fromSat(satoshi: UInt64(0))
2727
)
2828
)
2929
.listRowInsets(EdgeInsets())

0 commit comments

Comments
 (0)