From e40bbf6667cfcacd063c5e5729cca23d8a7481a6 Mon Sep 17 00:00:00 2001 From: PacificYield <173040337+PacificYield@users.noreply.github.com> Date: Fri, 6 Dec 2024 10:43:30 +0100 Subject: [PATCH] fix: fix --- test/asyncDecrypt.ts | 4 +--- test/confidentialERC20/ConfidentialERC20.ts | 7 +------ 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/test/asyncDecrypt.ts b/test/asyncDecrypt.ts index ee53e6e..17b3d12 100644 --- a/test/asyncDecrypt.ts +++ b/test/asyncDecrypt.ts @@ -1,4 +1,5 @@ import { Wallet, ZeroAddress } from "ethers"; +import gatewayArtifact from "fhevm-core-contracts/artifacts/gateway/GatewayContract.sol/GatewayContract.json"; import { ethers, network } from "hardhat"; import { ACL_ADDRESS, GATEWAYCONTRACT_ADDRESS, KMSVERIFIER_ADDRESS, PRIVATE_KEY_KMS_SIGNER } from "./constants"; @@ -6,10 +7,7 @@ import { awaitCoprocessor, getClearText } from "./coprocessorUtils"; import { impersonateAddress } from "./mockedSetup"; import { waitNBlocks } from "./utils"; -const gatewayArtifact = require("fhevm-core-contracts/artifacts/gateway/GatewayContract.sol/GatewayContract.json"); - const networkName = network.name; - const aclAdd = ACL_ADDRESS; const CiphertextType = { diff --git a/test/confidentialERC20/ConfidentialERC20.ts b/test/confidentialERC20/ConfidentialERC20.ts index 151d341..83364c8 100644 --- a/test/confidentialERC20/ConfidentialERC20.ts +++ b/test/confidentialERC20/ConfidentialERC20.ts @@ -174,12 +174,7 @@ describe("ConfidentialERC20", function () { // Decrypt Bob's balance const balanceHandleBob2 = await this.erc20.balanceOf(this.signers.bob); - const balanceBob2 = await reencryptEuint64( - this.signers.bob, - this.fhevm, - balanceHandleBob2, - this.contractAddress, - ); + const balanceBob2 = await reencryptEuint64(this.signers.bob, this.fhevm, balanceHandleBob2, this.contractAddress); expect(balanceBob2).to.equal(1337); // check that transfer did happen this time });