connectkit icon indicating copy to clipboard operation
connectkit copied to clipboard

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

Open Pszz opened this issue 8 months ago • 0 comments

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 avatar Jun 17 '24 09:06 Pszz