Skip to content

Commit bb418ad

Browse files
committed
refactor: use macros for TransactionError
1 parent 0cd46d4 commit bb418ad

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

bdk-ffi/src/bdk.udl

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,6 @@ interface RequestBuilderError {
99
RequestAlreadyConsumed();
1010
};
1111

12-
[Error]
13-
interface TransactionError {
14-
Io();
15-
OversizedVectorAllocation();
16-
InvalidChecksum(string expected, string actual);
17-
NonMinimalVarInt();
18-
ParseFailed();
19-
UnsupportedSegwitFlag(u8 flag);
20-
OtherTransactionErr();
21-
};
22-
2312
// ------------------------------------------------------------------------
2413
// bdk_wallet crate - types module
2514
// ------------------------------------------------------------------------

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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use crate::bitcoin::FeeRate;
1515
use crate::bitcoin::OutPoint;
1616
use crate::bitcoin::Script;
1717
use crate::error::RequestBuilderError;
18-
use crate::error::TransactionError;
1918
use crate::types::FullScanRequest;
2019
use crate::types::FullScanRequestBuilder;
2120
use crate::types::FullScanScriptInspector;

0 commit comments

Comments
 (0)