Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs init for proxies #671

Open
poppyseedDev opened this issue Dec 21, 2024 · 1 comment
Open

Docs init for proxies #671

poppyseedDev opened this issue Dec 21, 2024 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@poppyseedDev
Copy link
Contributor

add a section somewhere in the docs on how to initialize the fhevmconfig and gateway config for proxies

@poppyseedDev poppyseedDev self-assigned this Dec 24, 2024
@poppyseedDev poppyseedDev added the documentation Improvements or additions to documentation label Dec 24, 2024
@poppyseedDev
Copy link
Contributor Author

An example of usage:
https://github.com/zama-ai/dapps/blob/154b351ce03994c69a6fa48c6a4bf97e724ee6bd/hardhat/contracts/fheWordle/FHEWordleFactory.sol#L62-L64
https://github.com/zama-ai/dapps/blob/154b351ce03994c69a6fa48c6a4bf97e724ee6bd/hardhat/contracts/fheWordle/FHEWordle.sol#L75-L77

The abstract contract doesn’t work in a proxy obviously because in this case constructor must be replaced by an initializer. So dev must use TFHE.setFHEVM in his custom initializer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant