Skip to content

Commit

Permalink
fix: removed serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaccoSordo committed Sep 20, 2024
1 parent 08a4d32 commit 95bc756
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/beacon-dapp/src/dapp-client/DAppClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,6 @@ export class DAppClient extends Client {
}

private async handlePairingRequest(recipient: string) {
const serializer = new Serializer()

await this.initInternalTransports()

this.walletConnectTransport
Expand Down Expand Up @@ -561,7 +559,7 @@ export class DAppClient extends Client {
this.multiTabChannel.postMessage({
type: 'RESPONSE_PAIRING',
recipient,
data: await serializer.serialize(await this.walletConnectTransport?.getPairingRequestInfo())
data: await this.walletConnectTransport?.getPairingRequestInfo()
})
}

Expand Down Expand Up @@ -735,7 +733,7 @@ export class DAppClient extends Client {

this.pairingRequest = new ExposedPromise()
this.multiTabChannel.postMessage({ type: 'REQUEST_PAIRING' })
return await new Serializer().deserialize(await this.pairingRequest.promise)
return await this.pairingRequest.promise
}

public async init(transport?: Transport<any>): Promise<TransportType> {
Expand Down

0 comments on commit 95bc756

Please sign in to comment.