We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6306354 commit 70a54d9Copy full SHA for 70a54d9
1 file changed
embed/oko_attached/src/window_msgs/get_eth_chain_info.ts
@@ -27,7 +27,14 @@ export async function handleGetEthChain(
27
const chainId = message.payload.chain_id;
28
29
const allChains = await getAllChainsCached();
30
- const chainInfos = filterEthChains(allChains);
+ // SDK's OkoEIP1193Provider rejects the entire provider construction if any
31
+ // chain's native currency symbol is outside 1-8 chars. Drop registry
32
+ // entries that would trip that validator so a single bad chain doesn't
33
+ // block the whole EVM provider.
34
+ const chainInfos = filterEthChains(allChains).filter((c) => {
35
+ const symbol = c.currencies[0]?.coinDenom;
36
+ return symbol !== undefined && symbol.length >= 1 && symbol.length <= 8;
37
+ });
38
39
let resultChains: ChainInfo[] = [];
40
0 commit comments