Skip to content
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

Potential panic in default executor visit_register_role #5236

Open
dima74 opened this issue Nov 14, 2024 · 0 comments
Open

Potential panic in default executor visit_register_role #5236

dima74 opened this issue Nov 14, 2024 · 0 comments

Comments

@dima74
Copy link
Contributor

dima74 commented Nov 14, 2024

Looks like return should be added after executor.deny(err)? Otherwise execute! will panic in case if branch with executor.deny(err) is reached

if let Err(err) = executor.host().submit(isi) {
executor.deny(err);
}
execute!(executor, grant_role);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant