You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to override the CHAIN_DATA_LIST?
Seems it is unable to use this lib for new networks since the connector will check the ChainId in CHAIN_DATA_LIST?
Or any example to customize the provider with custom-xxxx?
export function getChainId(network) {
const chains = Object.values(CHAIN_DATA_LIST);
const match = filterMatches(
chains,
x => x.network === network,
undefined
);
if (!match) {
throw new Error(`No chainId found match ${network}`);
}
return match.chainId;
}
The text was updated successfully, but these errors were encountered:
How to override the
CHAIN_DATA_LIST
?Seems it is unable to use this lib for new networks since the connector will check the
ChainId
inCHAIN_DATA_LIST
?Or any example to customize the provider with
custom-xxxx
?The text was updated successfully, but these errors were encountered: