Skip to content

Commit

Permalink
tighten syntax for anon fn call
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroXbrock committed Jul 3, 2024
1 parent ab417c2 commit cf88619
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/chains/suave/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,14 +341,11 @@ function newSuaveWallet<TTransport extends Transport>(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({
Expand Down

0 comments on commit cf88619

Please sign in to comment.