@aztec/wallet-sdk 0.0.1-commit.c80b6263 → 0.0.1-commit.cb6bed7c2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -196,15 +196,14 @@ export class WalletManager {
196
196
  return {
197
197
  verificationHash: connection.info.verificationHash!,
198
198
  confirm: () => {
199
- return Promise.resolve(
200
- ExtensionWallet.create(
201
- connection.info.id,
202
- connection.port,
203
- connection.sharedKey,
204
- chainInfo,
205
- connectAppId,
206
- ),
199
+ extensionWallet = ExtensionWallet.create(
200
+ connection.info.id,
201
+ connection.port,
202
+ connection.sharedKey,
203
+ chainInfo,
204
+ connectAppId,
207
205
  );
206
+ return Promise.resolve(extensionWallet.asWallet());
208
207
  },
209
208
  cancel: () => {
210
209
  // Send disconnect to terminate the session on the extension side
@@ -213,7 +212,6 @@ export class WalletManager {
213
212
  type: WalletMessageType.DISCONNECT,
214
213
  requestId: discoveredWallet.requestId,
215
214
  });
216
- // Don't close the port - allow retry with fresh key exchange
217
215
  },
218
216
  };
219
217
  },