From cf88619cc3353fad24c21d2828fa00b87266c578 Mon Sep 17 00:00:00 2001 From: zeroXbrock <2791467+zeroXbrock@users.noreply.github.com> Date: Tue, 2 Jul 2024 22:38:40 -0700 Subject: [PATCH] tighten syntax for anon fn call --- src/chains/suave/wallet.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/chains/suave/wallet.ts b/src/chains/suave/wallet.ts index 8829fee0..e87fe24c 100644 --- a/src/chains/suave/wallet.ts +++ b/src/chains/suave/wallet.ts @@ -341,14 +341,11 @@ function newSuaveWallet(params: { const sig = isEIP712 ? await this.signEIP712ConfidentialRequest(ccRecord) - : await (async () => { - const signCcr = getSigningFunction( - client.transport, - params.privateKey, - params.jsonRpcAccount?.address, - ) - return await signCcr(ccRecord) - })() + : await getSigningFunction( + client.transport, + params.privateKey, + params.jsonRpcAccount?.address, + )(ccRecord) const { r, s, v } = formatSignature(sig) return serializeConfidentialComputeRequest({