Skip to content

Commit 3d207cb

Browse files
committed
fix: format code
1 parent 742429b commit 3d207cb

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

packages/smart-contract/config/env.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ const envSchema = z.object({
3030

3131
// Whether to use API V2 verification format
3232
IS_VERIFICATION_API_V2: z
33-
.string()
34-
.optional()
35-
.default('true')
36-
.refine((val) => val === 'true' || val === 'false', {
37-
message: 'IS_VERIFICATION_API_V2 must be "true" or "false"',
38-
})
39-
.transform((val) => val === 'true'),
33+
.string()
34+
.optional()
35+
.default('true')
36+
.refine((val) => val === 'true' || val === 'false', {
37+
message: 'IS_VERIFICATION_API_V2 must be "true" or "false"',
38+
})
39+
.transform((val) => val === 'true'),
4040
});
4141

4242
export const env = envSchema.parse(process.env);

packages/smart-contract/hardhat.config.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ const config: HardhatUserConfig = {
5151
//to verify contract on Blockscout
5252
etherscan: {
5353
apiKey: env.IS_VERIFICATION_API_V2
54-
? env.EXPLORER_API_KEY
55-
: {
56-
bellecour: env.EXPLORER_API_KEY || 'nothing', // a non-empty string is needed by the plugin.
57-
avalancheFuji: env.EXPLORER_API_KEY || 'nothing', // a non-empty string is needed by the plugin.
58-
arbitrumSepolia: env.EXPLORER_API_KEY || '',
59-
arbitrum: env.EXPLORER_API_KEY || '',
60-
},
54+
? env.EXPLORER_API_KEY
55+
: {
56+
bellecour: env.EXPLORER_API_KEY || 'nothing', // a non-empty string is needed by the plugin.
57+
avalancheFuji: env.EXPLORER_API_KEY || 'nothing', // a non-empty string is needed by the plugin.
58+
arbitrumSepolia: env.EXPLORER_API_KEY || '',
59+
arbitrum: env.EXPLORER_API_KEY || '',
60+
},
6161
customChains: [
6262
{
6363
network: 'bellecour',

0 commit comments

Comments
 (0)