Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phantom icon fix #61

Closed
marygooneratne opened this issue Sep 9, 2021 · 1 comment
Closed

Phantom icon fix #61

marygooneratne opened this issue Sep 9, 2021 · 1 comment

Comments

@marygooneratne
Copy link

Should be svg instead of png!

diff --git a/node_modules/@solana/wallet-adapter-wallets/lib/wallets.js b/node_modules/@solana/wallet-adapter-wallets/lib/wallets.js
index 8d06e22..0ff2a06 100644
--- a/node_modules/@solana/wallet-adapter-wallets/lib/wallets.js
+++ b/node_modules/@solana/wallet-adapter-wallets/lib/wallets.js
@@ -32,7 +32,7 @@ export const getMathWallet = (config) => ({
 export const getPhantomWallet = (config) => ({
     name: WalletName.Phantom,
     url: 'https://www.phantom.app',
-    icon: `${ICONS_URL}/phantom.png`,
+    icon: `${ICONS_URL}/phantom.svg`,
     adapter: () => new PhantomWalletAdapter(config),
 });
 export const getSolflareWallet = (config) => ({

This issue body was partially generated by patch-package.

@jordaaash
Copy link
Collaborator

This must be a patch against an older version, the Phantom icon is already an SVG: https://github.com/solana-labs/wallet-adapter/blob/4bea30d2362dc71e51b0038ba5c244a6e3d6c9d8/packages/wallets/src/wallets.ts#L78

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants