Skip to content

Commit

Permalink
fix: CHRONIX_PROVIDER_MAINNET_URL validation
Browse files Browse the repository at this point in the history
  • Loading branch information
eddort committed Sep 22, 2023
1 parent 12512c9 commit 3632d51
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/simple-dvt-deploy.e2e-chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,14 @@ describe('Simple DVT deploy', () => {

beforeAll(async () => {
sdk = await createSDK('http://localhost:8001');
const forkUrl = process.env.CHRONIX_PROVIDER_MAINNET_URL;

if (!forkUrl || forkUrl.length < 1) {
throw new Error('CHRONIX_PROVIDER_MAINNET_URL is not valid');
}

session = await sdk.env.hardhat({
fork: process.env.CHRONIX_PROVIDER_MAINNET_URL,
fork: forkUrl,
chainId: 1,
});

Expand Down

0 comments on commit 3632d51

Please sign in to comment.