Skip to content

Commit

Permalink
log trusted call signed
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Oct 4, 2024
1 parent 054d96a commit 18024ba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/worker-api/src/requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 18024ba

Please sign in to comment.