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 3ec8749 commit 7eba476Copy full SHA for 7eba476
script/genAddressesJson.ts
@@ -29,13 +29,19 @@ const main = async () => {
29
[chain: string]: { [label: string]: string };
30
} = {};
31
32
+ // as we are using Promise all here, so the order of the chains might not be maintained
33
await Promise.all(
34
chains.map(async (chain) => {
35
output[chain] = await addressesForChain(chain);
36
})
37
);
38
- const formattedJson = prettier.format(JSON.stringify(output), {
39
+ let orderedOutput: { [chain: string]: { [label: string]: string } } = {};
40
+ chains.forEach((chain) => {
41
+ orderedOutput[chain] = output[chain];
42
+ });
43
+
44
+ const formattedJson = prettier.format(JSON.stringify(orderedOutput), {
45
parser: "json",
46
});
47
0 commit comments