Skip to content

Commit cceb340

Browse files
committed
correct cache path
1 parent 38c1350 commit cceb340

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

contract_manager/scripts/batchDeployReceivers.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,9 @@ const parser = yargs(hideBin(process.argv))
4646
});
4747

4848
async function memoize(key: string, fn: () => Promise<any>) {
49-
const cacheDir = './cache';
49+
const cacheDir = '../../target_chains/ethereum/contracts/cache';
5050
const path = `${cacheDir}/${key}.json`;
5151

52-
// Ensure cache directory exists
53-
if (!fs.existsSync(cacheDir)) {
54-
fs.mkdirSync(cacheDir, { recursive: true });
55-
}
56-
5752
if (fs.existsSync(path)) {
5853
return JSON.parse(fs.readFileSync(path).toString());
5954
}

0 commit comments

Comments
 (0)