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

Update documentation for ACL Address #621

Merged
merged 3 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/guides/reencryption.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ const USER_ADDRESS = accounts[0];

// Create a fhevmjs instance using the Zama's network and the Zama's Gateway
const instance = await createInstance({
chainId: 8009,
aclAddress: '0x2Fb4341027eb1d2aD8B5D9708187df8633cAFA92',
chainId: 9000,
networkUrl: "https://devnet.zama.ai",
gatewayUrl: "https://gateway.zama.ai",
});
Expand Down
3 changes: 3 additions & 0 deletions docs/references/fhevmjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { initFhevm, createInstance } from "fhevmjs";

initFhevm().then(() => {
const instance = await createInstance({
aclAddress: '0x2Fb4341027eb1d2aD8B5D9708187df8633cAFA92',
chainId: 8009,
networkUrl: "https://devnet.zama.ai/",
gatewayUrl: "https://gateway.zama.ai/",
Expand All @@ -34,6 +35,7 @@ This function returns an instance of fhevmjs, which accepts an object containing
import { createInstance } from "fhevmjs";

const instance = await createInstance({
aclAddress: '0x2Fb4341027eb1d2aD8B5D9708187df8633cAFA92',
networkUrl: "https://devnet.zama.ai/",
gatewayUrl: "https://gateway.zama.ai/",
});
Expand All @@ -45,6 +47,7 @@ Using `window.ethereum` object:
import { createInstance } from "fhevmjs";

const instance = await createInstance({
aclAddress: '0x2Fb4341027eb1d2aD8B5D9708187df8633cAFA92',
network: window.ethereum,
gatewayUrl: "https://gateway.zama.ai/",
});
Expand Down
Loading