Skip to content

Conversation

@arr00
Copy link
Contributor

@arr00 arr00 commented Jun 16, 2025

Add vanilla as a submodule and use symlinks to files to avoid code duplication. Inherit styling and rules from vanilla.

@arr00 arr00 requested a review from a team as a code owner June 16, 2025 20:42
@netlify
Copy link

netlify bot commented Jun 16, 2025

Deploy Preview for confidential-tokens ready!

Name Link
🔨 Latest commit 860f4dd
🔍 Latest deploy log https://app.netlify.com/projects/confidential-tokens/deploys/6851a8691bc8720008f7ccc7
😎 Deploy Preview https://deploy-preview-65--confidential-tokens.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@arr00 arr00 requested a review from Amxx June 16, 2025 21:00
import { setCode } from "@nomicfoundation/hardhat-network-helpers";
import { ethers } from "ethers";
import { task } from "hardhat/config";
import { impersonate } from '../test/helpers/accounts';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that could be imported from @openzeppelin/contracts/test/helpers

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an added function for this repo.

export async function allowHandle(hre: HardhatRuntimeEnvironment, from: Signer, to: Addressable, handle: string) {
const acl_abi = JSON.parse(
fs.readFileSync('node_modules/fhevm-core-contracts/artifacts/contracts/ACL.sol/ACL.json', 'utf8'),
).abi;
const aclContract = await hre.ethers.getContractAt(acl_abi, ACL_ADDRESS);
await aclContract.connect(from).allow(handle, to);
}

import { ACL_ADDRESS, GATEWAYCONTRACT_ADDRESS, KMSVERIFIER_ADDRESS, PRIVATE_KEY_KMS_SIGNER } from "./constants";
import { awaitCoprocessor, getClearText } from "./coprocessorUtils";
import { waitNBlocks } from "./utils";
import { impersonate } from '../helpers/accounts';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some comment: can import from @openzeppelin/contracts/test/helpers

@arr00 arr00 merged commit 78789b8 into master Jun 18, 2025
13 checks passed
@arr00 arr00 deleted the chore/use-symlinks-to-vanilla branch June 18, 2025 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants