diff --git a/src/clients/pera/client.ts b/src/clients/pera/client.ts index b43d4252..5c10acc5 100644 --- a/src/clients/pera/client.ts +++ b/src/clients/pera/client.ts @@ -74,12 +74,8 @@ class PeraWalletClient extends BaseWallet { } async connect(onDisconnect: () => void): Promise { - this.keepWCAliveStart(); - const accounts = await this.#client.connect(); - this.keepWCAliveStop(); - this.#client.connector?.on("disconnect", onDisconnect); if (accounts.length === 0) { @@ -149,15 +145,9 @@ class PeraWalletClient extends BaseWallet { return acc; }, []); - // Play an audio file to keep Wallet Connect's web socket open on iOS - // when the user goes into background mode. - this.keepWCAliveStart(); - // Sign them with the client. const result = await this.#client.signTransaction([txnsToSign]); - this.keepWCAliveStop(); - // Join the newly signed transactions with the original group of transactions. const signedTxns = decodedTxns.reduce((acc, txn, i) => { if (!("txn" in txn)) { @@ -201,14 +191,10 @@ class PeraWalletClient extends BaseWallet { async signEncodedTransactions(transactions: TransactionsArray) { const transactionsToSign = this.formatTransactionsArray(transactions); - this.keepWCAliveStart(); - const result = (await this.#client.signTransaction([ transactionsToSign, ])) as Uint8Array[]; - this.keepWCAliveStop(); - const signedTransactions: Uint8Array[] = []; let resultIndex = 0;