Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: clean up unwraps in wallet_ffi (#3585)
Description --- Remove unwrap() in functions of wallet_ffi, code is considered best-effort to try to prevent a panic since the nature of handling invalid pointers or invalidly cast pointers passed in results in undefined behavior. The function signature of log_debug_message() was modified to take into account an error occurring. PR is a breaking change due to this. Fixed potential panic when unwrapping parse() for MultiAddr. Fixed missing documentation for init_logging(). Motivation and Context --- Removal of calls to unwrap() and bug fixes. How Has This Been Tested? --- cargo test --all
- Loading branch information