From 32a0f4d20b410b129e2304d6074ad143cb22b57b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Florek?= <132075104+LukassF@users.noreply.github.com> Date: Thu, 26 Sep 2024 12:39:56 +0200 Subject: [PATCH] fix aptos network info on connect (#210) --- sdk/apps/modal-example/package.json | 2 +- sdk/packages/selector-aptos/package.json | 2 +- sdk/packages/selector-aptos/src/adapter.ts | 6 +++++- sdk/pnpm-lock.yaml | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/sdk/apps/modal-example/package.json b/sdk/apps/modal-example/package.json index e50af219..de245cf7 100644 --- a/sdk/apps/modal-example/package.json +++ b/sdk/apps/modal-example/package.json @@ -22,7 +22,7 @@ "@nightlylabs/nightly-connect-polkadot": "0.0.16", "@nightlylabs/nightly-connect-solana": "0.0.29", "@nightlylabs/nightly-connect-sui": "0.1.0", - "@nightlylabs/wallet-selector-aptos": "0.1.9", + "@nightlylabs/wallet-selector-aptos": "0.1.10", "@nightlylabs/wallet-selector-base": "^0.4.1", "@nightlylabs/wallet-selector-polkadot": "0.2.7", "@nightlylabs/wallet-selector-solana": "0.3.6", diff --git a/sdk/packages/selector-aptos/package.json b/sdk/packages/selector-aptos/package.json index b5b47a32..7b336992 100644 --- a/sdk/packages/selector-aptos/package.json +++ b/sdk/packages/selector-aptos/package.json @@ -1,6 +1,6 @@ { "name": "@nightlylabs/wallet-selector-aptos", - "version": "0.1.9", + "version": "0.1.10", "description": "", "type": "module", "exports": { diff --git a/sdk/packages/selector-aptos/src/adapter.ts b/sdk/packages/selector-aptos/src/adapter.ts index 3cec7332..3b05a30d 100644 --- a/sdk/packages/selector-aptos/src/adapter.ts +++ b/sdk/packages/selector-aptos/src/adapter.ts @@ -506,7 +506,11 @@ export class NightlyConnectAptosAdapter extends EventEmitter this.connectToMobileWallet(walletName) } else { try { - const response = await this.connectToStandardWallet(walletName) + const response = await this.connectToStandardWallet( + walletName, + silent, + networkInfo + ) resolve(Promise.resolve(response)) } catch (error) { reject(error) diff --git a/sdk/pnpm-lock.yaml b/sdk/pnpm-lock.yaml index af0a92fa..68cbe3e7 100644 --- a/sdk/pnpm-lock.yaml +++ b/sdk/pnpm-lock.yaml @@ -84,7 +84,7 @@ importers: '@nightlylabs/nightly-connect-polkadot': 0.0.16 '@nightlylabs/nightly-connect-solana': 0.0.29 '@nightlylabs/nightly-connect-sui': 0.1.0 - '@nightlylabs/wallet-selector-aptos': 0.1.8 + '@nightlylabs/wallet-selector-aptos': 0.1.10 '@nightlylabs/wallet-selector-base': ^0.4.1 '@nightlylabs/wallet-selector-polkadot': 0.2.7 '@nightlylabs/wallet-selector-solana': 0.3.6