[Transfer App] Return Result instead of boolean for is_send_enabled
and is_receive_enabled
methods
#508
Labels
A: breaking
Admin: breaking change that may impact operators
O: maintainability
Objective: cause to ease modification, fault corrections and improve code understanding
O: reliability
Objective: cause to improve trustworthiness and consistent performing
S: errors
Scope: related to error handlings
Milestone
Problem Definition
The
is_send_enabled
andis_receive_enabled
methods under theTokenTransferValidationContext
return a boolean value whose sole purpose is to propagate errors. This violates Rust's error-handling convention of using the Result type for error reporting.This implementation was suitable as long as no specific error reporting was required, but it can become an issue as our codebase grow and require more detailed error reporting.
The text was updated successfully, but these errors were encountered: