-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix-2512 | rusk-wallet: Remove all panics in the codebase #3005
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You seem to have some changes to rusk and the stake contract in here which don't belong to the PR.
Apart from that I only some small comments
b15dff0
to
0511b0d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
0511b0d
to
c475ee9
Compare
c475ee9
to
923789f
Compare
// poison error and return the guard to the caller. | ||
match state { | ||
Ok(guard) => Arc::clone(&guard), | ||
Err(poisoned) => Arc::clone(&poisoned.into_inner()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a crate fn, if its called more than once we'll just deadlock anyways
The lock is also dropped once the function returns so im not sure if we need the match here. The function is also synchronous it won't be in a multithreaded environment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one nit otherwise LGTM
From<f64> for Dusk
implementation and replace it withTryFrom<f64> for Dusk
implementationFrom<GraphQLError> for Error
andFrom< InquireError> for Error
MAX_PROFILES
constant and replace it withget_max_profiles
function call to handle possible errors properlyUnrelated to panic handling
PasswordDisplayMode::Hidden
withPasswordDisplayMode::Masked
in password prompts to improve user experience when entering passwordsFuture improvements (for a separate PR)
inquire
menu. For non-critical errors, provide users with options to retry the failed operation or return to the previous menu, rather than always exiting with an error message.