diff --git a/env.ts b/env.ts index 5d7a689..fa25634 100644 --- a/env.ts +++ b/env.ts @@ -16,6 +16,7 @@ const OROCHI_CONFIGURATION = { OROCHI_ENCRYPTED_PASSPHRASE: '', LOCAL_RPC: '', RESULT_PATH: './output/result.json', + OROCHI_MNEMONIC: '', }; export type TEnvironment = typeof OROCHI_CONFIGURATION; diff --git a/tasks/generate-orocle-operator.ts b/tasks/generate-orocle-operator.ts index 65e4c7e..060ce07 100644 --- a/tasks/generate-orocle-operator.ts +++ b/tasks/generate-orocle-operator.ts @@ -17,7 +17,7 @@ task('generate:local-operator', 'Generate operator address only in local network } const { chainId } = hre.network.config; const dataTable = []; - const wallet = ethers.Wallet.createRandom(); + const wallet = ethers.Wallet.fromPhrase(env.OROCHI_MNEMONIC); const [master] = await hre.ethers.getSigners(); for (let i = 0; i < 5; i += 1) {