-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[trello.com/c/4QaDmVkg]: review fixes
- Loading branch information
1 parent
21e3727
commit afc394b
Showing
2 changed files
with
31 additions
and
22 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
Adamant/Modules/Wallets/Bitcoin/BitcoinKitTransactionFactory.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// | ||
// Untitled.swift | ||
// Adamant | ||
// | ||
// Created by Christian Benua on 17.01.2025. | ||
// Copyright © 2025 Adamant. All rights reserved. | ||
// | ||
|
||
import BitcoinKit | ||
|
||
final class BitcoinKitTransactionFactory: BitcoinKitTransactionFactoryProtocol { | ||
func createTransaction( | ||
toAddress address: Address, | ||
amount: UInt64, | ||
fee: UInt64, | ||
changeAddress: Address, | ||
utxos: [UnspentTransaction], | ||
lockTime: UInt32, | ||
keys: [PrivateKey] | ||
) -> Transaction { | ||
BitcoinKit.Transaction.createNewTransaction( | ||
toAddress: address, | ||
amount: amount, | ||
fee: fee, | ||
changeAddress: changeAddress, | ||
utxos: utxos, | ||
lockTime: lockTime, | ||
keys: keys | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters