Skip to content

Commit

Permalink
Set radix
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaStebaev committed Sep 18, 2023
1 parent 3683226 commit 88ef07f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module.exports = {
"no-console": "off",
// Replaced with @typescript-eslint/no-shadow
"no-shadow": "off",
"no-warning-comments": "warn",
"object-curly-spacing": "error",
"one-var": [
"error",
Expand All @@ -31,9 +32,6 @@ module.exports = {
"never"
],

"no-warning-comments": "warn",
"prefer-destructuring": "warn",
"radix": "warn",
"sort-imports": "warn",
"sort-keys": "warn"
}
Expand Down
6 changes: 5 additions & 1 deletion src/submitters/auto-submitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,12 @@ export class AutoSubmitter extends Submitter {
}

private static getMainnetChainId () {
const CHAIN_ID_RADIX = 10;
if (process.env.MAINNET_CHAIN_ID) {
return Number.parseInt(process.env.MAINNET_CHAIN_ID);
return Number.parseInt(
process.env.MAINNET_CHAIN_ID,
CHAIN_ID_RADIX
);
}
console.log(chalk.red("Set chainId of mainnet" +
" to MAINNET_CHAIN_ID environment variable"));
Expand Down

0 comments on commit 88ef07f

Please sign in to comment.