Skip to content

[server] - Fix Compile Error in gas_estimation_handler.rs #630

Description

@Hydrax117

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

  • cargo build --release succeeds without errors
  • Gas estimation errors use the correct variant or call ApiError::internal_error("…")
  • The gas estimation endpoint returns 500 with a descriptive (but safe) error message on Soroban failure

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.


Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions