File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed
Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -20,18 +20,10 @@ const envSchema = z.object({
2020 . or ( z . literal ( '' ) ) ,
2121
2222 // URL du RPC utilisé pour la connexion réseau
23- RPC_URL : z
24- . string ( )
25- . url ( 'RPC_URL must be a valid URL' )
26- . optional ( )
27- . or ( z . literal ( '' ) ) ,
23+ RPC_URL : z . string ( ) . url ( 'RPC_URL must be a valid URL' ) . optional ( ) . or ( z . literal ( '' ) ) ,
2824
2925 // Mnemonic de déploiement ou interaction réseau
30- MNEMONIC : z
31- . string ( )
32- . min ( 1 , 'MNEMONIC cannot be empty' )
33- . optional ( )
34- . or ( z . literal ( '' ) ) ,
26+ MNEMONIC : z . string ( ) . min ( 1 , 'MNEMONIC cannot be empty' ) . optional ( ) . or ( z . literal ( '' ) ) ,
3527} ) ;
3628
3729export const env = envSchema . parse ( process . env ) ;
Original file line number Diff line number Diff line change 11import { ethers } from 'hardhat' ;
22import { DATASET_REGISTRY_ADDRESS as defaultDatasetRegistryAddress } from '../config/config' ;
3- import { saveDeployment } from '../utils/utils' ;
43import { env } from '../config/env' ;
4+ import { saveDeployment } from '../utils/utils' ;
55
66async function main ( ) {
77 const [ deployer ] = await ethers . getSigners ( ) ;
88 console . log ( 'Deploying contracts with the account:' , deployer . address ) ;
99 const balance = await ethers . provider . getBalance ( deployer . address ) ;
1010 console . log ( 'Account balance:' , balance . toString ( ) ) ;
11-
11+
1212 const DATASET_REGISTRY_ADDRESS = env . DATASET_REGISTRY_ADDRESS || defaultDatasetRegistryAddress ;
1313 console . log ( `Using dataset registry at ${ DATASET_REGISTRY_ADDRESS } ` ) ;
1414
You can’t perform that action at this time.
0 commit comments