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 });