Skip to content

Commit

Permalink
Merge pull request #515 from zama-ai/fix/envChange
Browse files Browse the repository at this point in the history
fix: mocked mode with changing .env
  • Loading branch information
jatZama authored Sep 25, 2024
2 parents a55663f + af6d18d commit df7c321
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
9 changes: 6 additions & 3 deletions gateway/lib/Gateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 0 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fhevm",
"description": "A Solidity library for interacting with the Zama Blockchain",
"version": "0.5.8",
"version": "0.5.9",
"engines": {
"node": ">=20.0.0"
},
Expand Down

0 comments on commit df7c321

Please sign in to comment.