Skip to content

Commit

Permalink
update variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
alexharri committed May 18, 2024
1 parent af2d56b commit c4e5419
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/process-addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ const deserializedJsonFile = path.resolve(
);

async function main() {
const names: string[][] = JSON.parse(fs.readFileSync(filePath, "utf-8"));
const addresses: string[][] = JSON.parse(fs.readFileSync(filePath, "utf-8"));

const trie = createAndPopulateTrie(names);
const trie = createAndPopulateTrie(addresses);

writeAndLogSize(outFile, JSON.stringify(trie));

Expand All @@ -39,8 +39,8 @@ async function main() {
JSON.stringify(deserializeTrie(serializedTrie))
);

const serializedNames = encodeNames(new Set(getAddresses()));
writeAndLogSize(serializedAddressesFileName, serializedNames);
const serializedAddresses = encodeNames(new Set(getAddresses()));
writeAndLogSize(serializedAddressesFileName, serializedAddresses);
}

main();

0 comments on commit c4e5419

Please sign in to comment.