Skip to content

Commit

Permalink
chore: block_explorer refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Mucha <[email protected]>
  • Loading branch information
drptbl committed Oct 7, 2022
1 parent aa370d3 commit a10494a
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions synpress.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,14 @@ if (process.env.RPC_URL || process.env.CHAIN_ID) {
);
}

if (process.env.BLOCK_EXPLORER) {
if (
!process.env.BLOCK_EXPLORER.startsWith('http://') && //DevSkim: ignore DS137138
!process.env.BLOCK_EXPLORER.startsWith('https://')
) {
throw new Error(
'BLOCK_EXPLORER environment variable should start with "http://" or "https://"', //DevSkim: ignore DS137138
);
}
if (
process.env.BLOCK_EXPLORER &&
!process.env.BLOCK_EXPLORER.startsWith('http://') && //DevSkim: ignore DS137138
!process.env.BLOCK_EXPLORER.startsWith('https://')
) {
throw new Error(
'BLOCK_EXPLORER environment variable should start with "http://" or "https://"', //DevSkim: ignore DS137138
);
}
}

Expand Down

0 comments on commit a10494a

Please sign in to comment.