Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/sign-client/src/controllers/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@
const authenticateEventTarget = engineEvent("session_request", authenticateId);

// handle fallback session proposal response
const onSessionConnect = async ({ error, session }: any) => {

Check warning on line 962 in packages/sign-client/src/controllers/engine.ts

View workflow job for this annotation

GitHub Actions / code_style (lint)

Async arrow function has no 'await' expression
// cleanup listener for authenticate response
this.events.off(authenticateEventTarget, onAuthenticate);
if (error) reject(error);
Expand Down Expand Up @@ -1614,7 +1614,10 @@

const decryptedId = hashMessage(JSON.stringify(proposeSessionPayload));
const attestationId = hashMessage(proposeSessionMessage);
const attestation = await this.client.core.verify.register({ id: attestationId, decryptedId });
const attestation = await Promise.all([
this.client.core.verify.register({ id: attestationId, decryptedId }),
this.client.core.relayer.transportOpen(),
]).then(([attestation]) => attestation);

await this.client.core.relayer.publishCustom({
payload: {
Expand Down
Loading