Skip to content

Commit

Permalink
Make all DA scripts chdir to correct dir automatically
Browse files Browse the repository at this point in the history
Previously only the deploy script would.

This is necessary to ensure the hardhat config is picked up
by hardhat.
  • Loading branch information
L-as committed Apr 16, 2024
1 parent 4e3577c commit 5a5b5df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/zeko/da-layer/scripts/getBatches.ts
@@ -1,5 +1,9 @@
#!/usr/bin/env node

import { chdir } from "process";

chdir(__dirname);

import fs from "fs";
import { ethers } from "hardhat";
import { z } from "zod";
Expand Down
4 changes: 4 additions & 0 deletions src/app/zeko/da-layer/scripts/postBatch.ts
@@ -1,5 +1,9 @@
#!/usr/bin/env node

import { chdir } from "process";

chdir(__dirname);

import fs from "fs";
import { ethers } from "hardhat";
import { z } from "zod";
Expand Down

0 comments on commit 5a5b5df

Please sign in to comment.