We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ab1fff commit bb34d62Copy full SHA for bb34d62
wormhole-connect/src/config/utils.ts
@@ -53,6 +53,8 @@ export const mergeCustomWrappedTokens = (
53
54
for (const chain in custom) {
55
for (const addr in custom[chain]) {
56
+ // Prevent error when chain is not defined in built-in config
57
+ if (!builtin[chain]) builtin[chain] = {};
58
builtin[chain][addr] = {
59
...custom[chain][addr],
60
// Prevent overwriting built-in wrapped token addresses
0 commit comments