Skip to content

Commit

Permalink
fix: load relayer priv key only in mock
Browse files Browse the repository at this point in the history
  • Loading branch information
manoranjith authored and mano committed Oct 18, 2024
1 parent fd95c41 commit feae67b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/asyncDecrypt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ const currentTime = (): string => {
};

const parsedEnv = dotenv.parse(fs.readFileSync('gateway/.env.gateway'));
const privKeyRelayer = process.env.PRIVATE_KEY_GATEWAY_RELAYER;
const relayer = new ethers.Wallet(privKeyRelayer!, ethers.provider);
let relayer: Wallet;
if (networkName === 'hardhat') {
const privKeyRelayer = process.env.PRIVATE_KEY_GATEWAY_RELAYER;
const relayer = new ethers.Wallet(privKeyRelayer!, ethers.provider);
}

const argEvents =
'(uint256 indexed requestID, uint256[] cts, address contractCaller, bytes4 callbackSelector, uint256 msgValue, uint256 maxTimestamp, bool passSignaturesToCaller)';
Expand Down

0 comments on commit feae67b

Please sign in to comment.