sygmaprotocol / sygma-widget

Transfer widget for the sygmaprotocol
5 stars 2 forks source link

Chainlist triggers Metamask network addition for chains that are defined as Substrate on our Config #211

Closed LyonSsS closed 3 weeks ago

LyonSsS commented 3 weeks ago

Context: When Widget interacts with a Substrate chain that also has an EVM RPC ( available on Chainlist), it should respect the flow of logic based on our ChainSafe sharedConfig file, for the type of that ChainID.

In the current case Tangle Test Chain has its test chain ID registred on booth Chainlist website with EVM rpc and it is also defined on our Config as a Substrate type chain for the same ChainId. This should not prompted the Metamask option to add the chain and work by default with Polkdaot wallet addon.

image

LyonSsS commented 3 weeks ago

Tested on PR preview branch https://github.com/sygmaprotocol/sygma-widget/pull/212 and works as expected