File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed
Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 11import '@nomicfoundation/hardhat-toolbox' ;
22import { HardhatUserConfig } from 'hardhat/config' ;
33import { env } from './config/env' ;
4- import { HARDHAT_NETWORK_MNEMONIC } from 'hardhat/internal/core/config/default-config' ;
54
65const privateKey = env . WALLET_PRIVATE_KEY ;
76
Original file line number Diff line number Diff line change 1- import { buildModule } from " @nomicfoundation/hardhat-ignition/modules" ;
1+ import { buildModule } from ' @nomicfoundation/hardhat-ignition/modules' ;
22import { DATASET_REGISTRY_ADDRESS as defaultDatasetRegistryAddress } from '../../config/config' ;
33import { env } from '../../config/env' ;
44
5- export default buildModule ( "DataProtectorModule" , ( m ) => {
6- // Get registry address from environment or default
7- const DATASET_REGISTRY_ADDRESS = env . DATASET_REGISTRY_ADDRESS || defaultDatasetRegistryAddress ;
8-
9- // Deploy DataProtector with the registry address as constructor argument
10- const dataProtector = m . contract ( "DataProtector" , [ DATASET_REGISTRY_ADDRESS ] ) ;
5+ export default buildModule ( 'DataProtectorModule' , ( m ) => {
6+ // Get registry address from environment or default
7+ const DATASET_REGISTRY_ADDRESS = env . DATASET_REGISTRY_ADDRESS || defaultDatasetRegistryAddress ;
118
12- // Return the deployed contract
13- return { dataProtector } ;
9+ // Deploy DataProtector with the registry address as constructor argument
10+ const dataProtector = m . contract ( 'DataProtector' , [ DATASET_REGISTRY_ADDRESS ] ) ;
11+
12+ // Return the deployed contract
13+ return { dataProtector } ;
1414} ) ;
You can’t perform that action at this time.
0 commit comments