Skip to content

Commit f5061ac

Browse files
authored
fix: convert address set into an array (#3174)
Signed-off-by: bennett <bennett@umaproject.org>
1 parent 50c36f8 commit f5061ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/fetch-addresses.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ async function run(): Promise<number> {
1212
[new addressAdapters.risklabs.AddressList({ path, throwOnError: false })],
1313
logger
1414
);
15-
const addresses = await addressList.update();
15+
const addressSet = await addressList.update();
16+
const addresses = Array.from(addressSet);
1617
await writeFile(OUTPUT_PATH, JSON.stringify(addresses, null, 4));
17-
console.log(`Stored ${addresses.size} addresses at ${OUTPUT_PATH}.`);
18+
console.log(`Stored ${addressSet.size} addresses at ${OUTPUT_PATH}.`);
1819

1920
return 0;
2021
}

0 commit comments

Comments
 (0)