Skip to content

Commit

Permalink
Merge branch 'fix-integration-test' into validium-fix-test-new-env-value
Browse files Browse the repository at this point in the history
  • Loading branch information
toni-calvin authored Feb 1, 2024
2 parents 6ac98ec + ea1c727 commit 49a73ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/tests/ts-integration/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export async function scaledGasPrice(wallet: ethers.Wallet | zksync.Wallet): Pro
* @returns Boolean that indicates whether it is Validium mode.
*/
export async function isValidium(): Promise<boolean> {

const filePath = `${process.env.ZKSYNC_HOME}/etc/env/dev.env`;

try {
Expand All @@ -126,4 +127,5 @@ export async function isValidium(): Promise<boolean> {
console.error(`Error reading or parsing the config file ${filePath}:`, error);
return false; // Return a default value or handle the error as needed
}
}
x}

0 comments on commit 49a73ac

Please sign in to comment.