From 9108bb71f4465a3300e414a0601b21142fdecd17 Mon Sep 17 00:00:00 2001 From: Shunkichi Sato <49983831+s8sato@users.noreply.github.com> Date: Fri, 15 Nov 2024 13:09:55 +0900 Subject: [PATCH] review: `visit_grant_account_role` in `visit_register_role` Signed-off-by: Shunkichi Sato <49983831+s8sato@users.noreply.github.com> --- crates/iroha_executor/src/default/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/iroha_executor/src/default/mod.rs b/crates/iroha_executor/src/default/mod.rs index 7a8479a8ee3..4b85c85509e 100644 --- a/crates/iroha_executor/src/default/mod.rs +++ b/crates/iroha_executor/src/default/mod.rs @@ -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, @@ -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");