diff --git a/bdk-ffi/src/bdk.udl b/bdk-ffi/src/bdk.udl index 7d2cf285..8ef88fa1 100644 --- a/bdk-ffi/src/bdk.udl +++ b/bdk-ffi/src/bdk.udl @@ -72,7 +72,7 @@ interface AddressError { ExcessiveScriptSize(); UnrecognizedScript(); NetworkValidation(Network required, Network found, string address); - OtherAddressError(); + OtherAddressErr(); }; [Error] @@ -83,7 +83,7 @@ interface TransactionError { NonMinimalVarInt(); ParseFailed(); UnsupportedSegwitFlag(u8 flag); - OtherTransactionError(); + OtherTransactionErr(); }; [Error] @@ -136,7 +136,7 @@ interface ExtractTxError { AbsurdFeeRate(u64 fee_rate); MissingInputValue(); SendingTooMuch(); - OtherExtractTransactionError(); + OtherExtractTxErr(); }; [Error] diff --git a/bdk-ffi/src/error.rs b/bdk-ffi/src/error.rs index bad5465b..e00e5bcc 100644 --- a/bdk-ffi/src/error.rs +++ b/bdk-ffi/src/error.rs @@ -183,7 +183,7 @@ pub enum AddressError { // This is required because the bdk::bitcoin::address::Error is non-exhaustive #[error("other address error")] - OtherAddressError, + OtherAddressErr, } // Mapping https://docs.rs/bitcoin/latest/src/bitcoin/consensus/encode.rs.html#40-63 @@ -209,7 +209,7 @@ pub enum TransactionError { // This is required because the bdk::bitcoin::consensus::encode::Error is non-exhaustive #[error("other transaction error")] - OtherTransactionError, + OtherTransactionErr, } #[derive(Debug, thiserror::Error)] @@ -319,7 +319,7 @@ pub enum ExtractTxError { #[error( "this error is required because the bdk::bitcoin::psbt::ExtractTxError is non-exhaustive" )] - OtherExtractTransactionError, + OtherExtractTxErr, } impl From for DescriptorError { @@ -554,7 +554,7 @@ impl From for AddressError { found, address: format!("{:?}", address), }, - _ => AddressError::OtherAddressError, + _ => AddressError::OtherAddressErr, } } } @@ -570,7 +570,7 @@ impl From for AddressError { ParseError::WitnessProgram(e) => AddressError::WitnessProgram { error_message: e.to_string(), }, - _ => AddressError::OtherAddressError, + _ => AddressError::OtherAddressErr, } } } @@ -595,7 +595,7 @@ impl From for TransactionError { bdk::bitcoin::consensus::encode::Error::UnsupportedSegwitFlag(flag) => { TransactionError::UnsupportedSegwitFlag { flag } } - _ => TransactionError::OtherTransactionError, + _ => TransactionError::OtherTransactionErr, } } } @@ -615,7 +615,7 @@ impl From for ExtractTxError { bdk::bitcoin::psbt::ExtractTxError::SendingTooMuch { .. } => { ExtractTxError::SendingTooMuch } - _ => ExtractTxError::OtherExtractTransactionError, + _ => ExtractTxError::OtherExtractTxErr, } } }