Skip to content

Commit fb4ed61

Browse files
committed
format code
1 parent 1719acd commit fb4ed61

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

packages/smart-contract/config/env.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff 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

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

packages/smart-contract/scripts/deploy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { ethers } from 'hardhat';
22
import { DATASET_REGISTRY_ADDRESS as defaultDatasetRegistryAddress } from '../config/config';
3-
import { saveDeployment } from '../utils/utils';
43
import { env } from '../config/env';
4+
import { saveDeployment } from '../utils/utils';
55

66
async 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

0 commit comments

Comments
 (0)