Skip to content

Commit

Permalink
rmv try-catch
Browse files Browse the repository at this point in the history
  • Loading branch information
juan518munoz committed Jan 22, 2024
1 parent 1bba0c4 commit ab7e11e
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions infrastructure/zk/src/hyperchain_wizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -632,15 +632,11 @@ export function getTokens(network: string): L1Token[] {

export function getNativeToken(): L1Token {
const configPath = `${process.env.ZKSYNC_HOME}/etc/tokens/native_erc20.json`;
try {
return JSON.parse(
fs.readFileSync(configPath, {
encoding: 'utf-8'
})
);
} catch (e) {
throw e;
}
return JSON.parse(
fs.readFileSync(configPath, {
encoding: 'utf-8'
})
);
}

async function selectHyperchainConfiguration() {
Expand Down

0 comments on commit ab7e11e

Please sign in to comment.