From 187075ec31927ca1cce95a4b8ffbfd529d433e70 Mon Sep 17 00:00:00 2001 From: Christian Langenbacher Date: Sat, 6 Apr 2024 18:46:50 +0800 Subject: [PATCH] [worker] fix signature of trusted call --- packages/worker-api/src/requests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/worker-api/src/requests.ts b/packages/worker-api/src/requests.ts index c515cb44..009ad01f 100644 --- a/packages/worker-api/src/requests.ts +++ b/packages/worker-api/src/requests.ts @@ -83,6 +83,6 @@ export const createTrustedCall = ( return self.createType('TrustedCallSigned', { call: call, nonce: nonce, - signature: toAccount(accountOrPubKey, self.keyring()).sign(payload) + signature: { Sr25519: toAccount(accountOrPubKey, self.keyring()).sign(payload) }, }); }