Skip to content

Commit

Permalink
fix: get right index for suggestedUpdates
Browse files Browse the repository at this point in the history
  • Loading branch information
anondev2323 committed Oct 13, 2023
1 parent 5f7d5c0 commit 008c7e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/tokenRegistry/src/scripts/updateForeignAssetConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const checkEnvConfig = async (
const wh = new Wormhole(env, [EvmPlatform, SolanaPlatform]);

const data = await getSuggestedUpdates(wh, tokensConfig);
const suggestedUpdates = data[0] as TokensConfig;
const suggestedUpdates = data[1] as TokensConfig;
const newConfig = mergeDeep(tokensConfig, suggestedUpdates);
const filePath = env === 'Mainnet' ? 'src/tokens/mainnetTokens.json' : 'src/tokens/testnetTokens.json';
fs.writeFileSync(filePath, JSON.stringify(newConfig, null, 2));
Expand Down
8 changes: 4 additions & 4 deletions core/tokenRegistry/src/tokens/testnetTokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@
"address": "7VPWjBhCXrpYYBiRKZh1ubh9tLZZNkZGp2ReRphEV4Mc",
"decimals": 8
},
"Bsc": {
"address": "0x064a85eac6b4Bd7190BCAd3458dBD9459989c37B",
"decimals": 18
},
"Avalanche": {
"address": "0xbB5A2dC896Ec4E2fa77F40FA630582ed9c6D0172",
"decimals": 18
Expand Down Expand Up @@ -57,6 +53,10 @@
"Optimism": {
"address": "0x33Db338718aC89Cd8DB13B56af05be3a3029BBE5",
"decimals": 18
},
"Bsc": {
"address": "0x064a85eac6b4Bd7190BCAd3458dBD9459989c37B",
"decimals": 18
}
}
},
Expand Down

0 comments on commit 008c7e8

Please sign in to comment.