Skip to content

Commit

Permalink
review: visit_grant_account_role in visit_register_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 15, 2024
1 parent 8a0d88f commit 9108bb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/iroha_executor/src/default/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1266,7 +1266,7 @@ pub mod role {
if let Err(err) = executor.host().submit(isi) {
deny!(executor, err);
}
execute!(executor, grant_role);
return executor.visit_grant_account_role(grant_role);
}
deny!(
executor,
Expand Down Expand Up @@ -1309,7 +1309,7 @@ pub mod role {
deny!(executor, err);
}

execute!(executor, grant_role);
return executor.visit_grant_account_role(grant_role);
}

deny!(executor, "Can't register role");
Expand Down

0 comments on commit 9108bb7

Please sign in to comment.