Description
gas_estimation_handler.rs uses ApiError::InternalServerError(format!("…")) treating InternalServerError as a tuple variant. However, it is defined as a unit variant in api_error.rs. This is a compile-time error that prevents the binary from building.
Acceptance Criteria
Technical Notes
Either change the usage to ApiError::InternalServerError (no args) and add error logging, or change the variant definition to InternalServerError(String) and update all downstream match arms accordingly.
Description
gas_estimation_handler.rsusesApiError::InternalServerError(format!("…"))treatingInternalServerErroras a tuple variant. However, it is defined as a unit variant inapi_error.rs. This is a compile-time error that prevents the binary from building.Acceptance Criteria
cargo build --releasesucceeds without errorsApiError::internal_error("…")500with a descriptive (but safe) error message on Soroban failureTechnical Notes
Either change the usage to
ApiError::InternalServerError(no args) and add error logging, or change the variant definition toInternalServerError(String)and update all downstream match arms accordingly.