Skip to content

Commit

Permalink
fix: don't continue to grant a role on failing to register the role
Browse files Browse the repository at this point in the history
Signed-off-by: Shunkichi Sato <[email protected]>
  • Loading branch information
s8sato committed Nov 2, 2024
1 parent a60a933 commit 667fe6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/iroha_executor/src/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ pub mod role {
let grant_role = &Grant::account_role(role.id().clone(), role.grant_to().clone());
let isi = &Register::role(new_role);
if let Err(err) = executor.host().submit(isi) {
executor.deny(err);
deny!(executor, err);
}

execute!(executor, grant_role);
Expand Down

0 comments on commit 667fe6f

Please sign in to comment.