Skip to content

Commit

Permalink
fix: added intantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
isordo committed Sep 28, 2023
1 parent def689b commit 4b34f71
Showing 1 changed file with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -597,18 +597,16 @@ export class WalletConnectCommunicationClient extends CommunicationClient {
return this.session
}

public async getPairingRequestInfo(
): Promise<ExtendedWalletConnectPairingRequest> {
public async getPairingRequestInfo(): Promise<ExtendedWalletConnectPairingRequest> {
const { uri, topic } = (await this.init(true)) ?? {}
return {
id: topic!,
type: 'walletconnect-pairing-request',
name: 'WalletConnect',
version: BEACON_VERSION,
uri: uri!,
senderId: await generateGUID(),
publicKey: await generateGUID()
}
return new ExtendedWalletConnectPairingRequest(
topic!,
'WalletConnect',
await generateGUID(),
BEACON_VERSION,
await generateGUID(),
uri!
)
}

private async closePairings() {
Expand Down

0 comments on commit 4b34f71

Please sign in to comment.