File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed
Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff 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
4242export const env = envSchema . parse ( process . env ) ;
Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments