Skip to content

Commit f79ee1b

Browse files
cleanup
1 parent e25f2d4 commit f79ee1b

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

server/src/http/error.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,14 @@ impl ApiEngineError {
6969
EngineError::VaultError { .. } => StatusCode::INTERNAL_SERVER_ERROR,
7070
EngineError::IawError { error } => match error {
7171
thirdweb_core::iaw::IAWError::ApiError(_) => StatusCode::INTERNAL_SERVER_ERROR,
72-
thirdweb_core::iaw::IAWError::SerializationError { message } => {
73-
StatusCode::BAD_REQUEST
74-
}
75-
thirdweb_core::iaw::IAWError::NetworkError { error } => StatusCode::BAD_REQUEST,
72+
thirdweb_core::iaw::IAWError::SerializationError { .. } => StatusCode::BAD_REQUEST,
73+
thirdweb_core::iaw::IAWError::NetworkError { .. } => StatusCode::BAD_REQUEST,
7674
thirdweb_core::iaw::IAWError::AuthError(_) => StatusCode::UNAUTHORIZED,
77-
thirdweb_core::iaw::IAWError::ThirdwebError(thirdweb_error) => {
78-
StatusCode::INTERNAL_SERVER_ERROR
79-
}
75+
thirdweb_core::iaw::IAWError::ThirdwebError(_) => StatusCode::INTERNAL_SERVER_ERROR,
8076
thirdweb_core::iaw::IAWError::UnexpectedError(_) => {
8177
StatusCode::INTERNAL_SERVER_ERROR
8278
}
83-
thirdweb_core::iaw::IAWError::UserOpError(user_op_error) => StatusCode::BAD_REQUEST,
79+
thirdweb_core::iaw::IAWError::UserOpError(_) => StatusCode::BAD_REQUEST,
8480
},
8581
EngineError::BundlerError { .. } => StatusCode::BAD_REQUEST,
8682
EngineError::PaymasterError { .. } => StatusCode::BAD_REQUEST,

thirdweb-core/src/iaw/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,6 @@ impl IAWClient {
172172
reqwest::header::HeaderValue::from_static("application/json"),
173173
);
174174

175-
tracing::info!("Headers: {:?}", headers);
176-
177175
// Convert MessageFormat to isRaw boolean (Hex = true, Text = false)
178176
let is_raw = match format.unwrap_or_default() {
179177
MessageFormat::Hex => true,

0 commit comments

Comments
 (0)