Skip to content

Commit b822dca

Browse files
committed
refactor: use macros for TransactionError
1 parent 64c1fca commit b822dca

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

bdk-ffi/src/bdk.udl

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,6 @@ namespace bdk {};
44
// bdk crate - error module
55
// ------------------------------------------------------------------------
66

7-
[Error]
8-
interface TransactionError {
9-
Io();
10-
OversizedVectorAllocation();
11-
InvalidChecksum(string expected, string actual);
12-
NonMinimalVarInt();
13-
ParseFailed();
14-
UnsupportedSegwitFlag(u8 flag);
15-
OtherTransactionErr();
16-
};
17-
187
// ------------------------------------------------------------------------
198
// bdk_wallet crate - types module
209
// ------------------------------------------------------------------------

bdk-ffi/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ pub enum SignerError {
745745
Psbt { error_message: String },
746746
}
747747

748-
#[derive(Debug, thiserror::Error)]
748+
#[derive(Debug, thiserror::Error, uniffi::Error)]
749749
pub enum TransactionError {
750750
#[error("io error")]
751751
Io,

bdk-ffi/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ mod wallet;
1313

1414
use crate::bitcoin::FeeRate;
1515
use crate::bitcoin::OutPoint;
16-
use crate::bitcoin::Script;
17-
use crate::error::TransactionError;
1816

1917
use bdk_wallet::bitcoin::Network;
2018

0 commit comments

Comments
 (0)