Skip to content

Commit

Permalink
[core] Bumped @aptos-connect/wallet-adapter-plugin to 2.0.2 (#418)
Browse files Browse the repository at this point in the history
* [core] Bumped `@aptos-connect/wallet-adapter-plugin` to 2.0.2
and added `preferredWalletName` option

* Added changeset
  • Loading branch information
hardsetting authored Sep 13, 2024
1 parent 3968a90 commit bd54d77
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 33 deletions.
5 changes: 5 additions & 0 deletions .changeset/shaggy-schools-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@aptos-labs/wallet-adapter-core": minor
---

Bumped `@aptos-connect/wallet-adapter-plugin` to 2.0.2 and exposed `preferredWalletName` option
2 changes: 1 addition & 1 deletion packages/wallet-adapter-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"typescript": "^4.5.3"
},
"dependencies": {
"@aptos-connect/wallet-adapter-plugin": "^2.0.0",
"@aptos-connect/wallet-adapter-plugin": "^2.0.2",
"@aptos-labs/wallet-standard": "^0.2.0",
"@atomrigslab/aptos-wallet-adapter": "^0.1.20",
"@mizuwallet-sdk/aptos-wallet-adapter": "^0.2.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export function getSDKWallets(dappConfig?: DappConfig) {
new AptosConnectWallet({
network: dappConfig?.network,
dappId: dappConfig?.aptosConnectDappId,
})
...dappConfig?.aptosConnect,
}),
);

if (
Expand Down
4 changes: 4 additions & 0 deletions packages/wallet-adapter-core/src/WalletCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,16 @@ import {
import { GA4 } from "./ga";
import { WALLET_ADAPTER_CORE_VERSION } from "./version";
import { aptosStandardSupportedWalletList } from "./AIP62StandardWallets/registry";
import type { AptosConnectWalletConfig } from "@aptos-connect/wallet-adapter-plugin";

export type IAptosWallet = AptosStandardWallet & Wallet;

export interface DappConfig {
network: Network;
/** @deprecated */
aptosConnectDappId?: string;
// Config used to initialize the AptosConnect wallet provider
aptosConnect?: Omit<AptosConnectWalletConfig, 'network'>,
mizuwallet?: {
manifestURL: string;
appId?: string;
Expand Down
45 changes: 14 additions & 31 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bd54d77

Please sign in to comment.