From d5209982a420735af3c4acd1ace174cf6cd46727 Mon Sep 17 00:00:00 2001 From: Francisco Silva Date: Tue, 24 Dec 2024 11:20:01 +0000 Subject: [PATCH] including extrinsic params and adding error logs --- .../core/native-task/receiver/src/lib.rs | 27 +++++++++++++------ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/tee-worker/identity/litentry/core/native-task/receiver/src/lib.rs b/tee-worker/identity/litentry/core/native-task/receiver/src/lib.rs index 461e62debb..98246dced5 100644 --- a/tee-worker/identity/litentry/core/native-task/receiver/src/lib.rs +++ b/tee-worker/identity/litentry/core/native-task/receiver/src/lib.rs @@ -589,15 +589,26 @@ fn handle_trusted_call { + if let Err(e) = context.ocall_api.send_to_parentchain( + extrinsic, + &ParentchainId::Litentry, + None, + ) { + log::error!("Failed to send extrinsic to parentchain: {:?}", e); + } + }, + Err(e) => { + log::error!("Failed to create extrinsic: {:?}", e); + }, + }; let result: TrustedCallResult = Ok(auth_token.into()); context.author_api.send_rpc_response(connection_hash, result.encode(), false);