From 123adbd4bb06798e5e47e7cdc2ef2aac12b6e14f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joseph-Andr=C3=A9=20Turk?= Date: Wed, 25 Sep 2024 15:17:49 +0200 Subject: [PATCH] fix: mocked mode with changing .env --- gateway/lib/Gateway.sol | 9 ++++++--- hardhat.config.ts | 2 -- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gateway/lib/Gateway.sol b/gateway/lib/Gateway.sol index b8357e3e..75bd0a04 100644 --- a/gateway/lib/Gateway.sol +++ b/gateway/lib/Gateway.sol @@ -2,13 +2,16 @@ pragma solidity ^0.8.24; +import "./PredeployAddress.sol"; import "../GatewayContract.sol"; import "../../lib/ACL.sol"; import "../../lib/KMSVerifier.sol"; +import "../../lib/ACLAddress.sol"; +import "../../lib/KMSVerifierAddress.sol"; -GatewayContract constant gatewayContract = GatewayContract(0xc8c9303Cd7F337fab769686B593B87DC3403E0ce); // Replace by GatewayContract address -ACL constant acl = ACL(0x2Fb4341027eb1d2aD8B5D9708187df8633cAFA92); // Replace by ACL address -KMSVerifier constant kmsVerifier = KMSVerifier(address(0x12B064FB845C1cc05e9493856a1D637a73e944bE)); +GatewayContract constant gatewayContract = GatewayContract(GATEWAY_CONTRACT_PREDEPLOY_ADDRESS); // Replace by GatewayContract address +ACL constant acl = ACL(aclAdd); // Replace by ACL address +KMSVerifier constant kmsVerifier = KMSVerifier(address(KMS_VERIFIER_CONTRACT_ADDRESS)); library Gateway { function GatewayContractAddress() internal pure returns (address) { diff --git a/hardhat.config.ts b/hardhat.config.ts index 57fb2251..b54183b8 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -3,8 +3,6 @@ import dotenv from 'dotenv'; import * as fs from 'fs'; import 'hardhat-deploy'; import 'hardhat-ignore-warnings'; -import 'hardhat-preprocessor'; -import { TASK_PREPROCESS } from 'hardhat-preprocessor'; import type { HardhatUserConfig, extendProvider } from 'hardhat/config'; import { task } from 'hardhat/config'; import type { NetworkUserConfig } from 'hardhat/types';