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

[BUG] Custom chain icon file replacement is not supported. #402

Open
Pszz opened this issue Jun 17, 2024 · 0 comments
Open

[BUG] Custom chain icon file replacement is not supported. #402

Pszz opened this issue Jun 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Pszz
Copy link

Pszz commented Jun 17, 2024

Describe the bug
Connectkit does not support custom chain icon file replacement.
When I link network and switch network, its icon is unknown.

import { defineChain } from 'viem'

// Custom chain
export const customTestChain = defineChain({
  id: 888888888,
  name: 'TestChain',
  testnet: true,
  iconUrl: '/imgs/chains/test_chain.svg',
  // ...some other code
})

^^ This method is better, especially for some private chains, which may not necessarily submit their logos to the public area.

// rainbowkit they can support.
"@rainbow-me/rainbowkit": "^2.1.2",

@Pszz Pszz added the bug Something isn't working label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant