From 18024ba6dad1311c2a4ac83f2ea6c18bf7f76c62 Mon Sep 17 00:00:00 2001 From: Christian Langenbacher Date: Fri, 4 Oct 2024 13:43:23 +0200 Subject: [PATCH] log trusted call signed --- packages/worker-api/src/requests.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/worker-api/src/requests.ts b/packages/worker-api/src/requests.ts index 7b5a878b..85fcc1be 100644 --- a/packages/worker-api/src/requests.ts +++ b/packages/worker-api/src/requests.ts @@ -111,9 +111,14 @@ export const signTrustedCall = async ( const signature = await signPayload(account, payload, options?.signer); - return self.createType('IntegriteeTrustedCallSigned', { + const callSigned = self.createType('IntegriteeTrustedCallSigned', { call: call, nonce: nonce, signature: {Sr25519: signature}, }); + + console.log(`[TrustedCallSigned]: ${JSON.stringify(callSigned)}`); + console.log(`[TrustedCallSigned]: ${callSigned.toU8a()}`); + + return callSigned; }