From 1fbd253640c4a64edc39a5cde5e4e754bfcb0e48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joseph-Andr=C3=A9=20Turk?= Date: Thu, 22 Feb 2024 17:09:11 +0100 Subject: [PATCH] fix: updated fhevmjs and using same accounts in mocked and fhevm modes --- .env.example | 4 ++-- hardhat.config.ts | 7 +++++++ package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 9932d1b..de32d86 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,5 @@ export INFURA_API_KEY="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz" -export MNEMONIC="inquiry potato become monster tornado chest logic egg tenant brick donkey hold" +export MNEMONIC="adapt mosquito move limb mobile illegal tree voyage juice mosquito burger raise father hope layer" # Block explorer API keys export ARBISCAN_API_KEY="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz" @@ -7,4 +7,4 @@ export BSCSCAN_API_KEY="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz" export ETHERSCAN_API_KEY="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz" export OPTIMISM_API_KEY="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz" export POLYGONSCAN_API_KEY="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz" -export SNOWTRACE_API_KEY="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz" +export SNOWTRACE_API_KEY="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz" \ No newline at end of file diff --git a/hardhat.config.ts b/hardhat.config.ts index 13c8d04..b46d2aa 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -132,6 +132,13 @@ const config: HardhatUserConfig = { src: "./contracts", }, networks: { + hardhat: { + accounts: { + count: 10, + mnemonic, + path: "m/44'/60'/0'/0", + }, + }, zama: getChainConfig("zama"), localDev: getChainConfig("local"), local: getChainConfig("local"), diff --git a/package.json b/package.json index cc7558e..f587717 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "eslint-config-prettier": "^8.5.0", "ethers": "^6.8.0", "fhevm": "0.4.0-0", - "fhevmjs": "^0.4.0-3", + "fhevmjs": "^0.4.0-4", "fs-extra": "^10.1.0", "hardhat": "^2.19.4", "hardhat-deploy": "^0.11.29",