Skip to content

Commit

Permalink
fix() change address for fhepubkey
Browse files Browse the repository at this point in the history
  • Loading branch information
immortal-tofu committed Dec 6, 2023
1 parent 551c732 commit 0926283
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/fhevmjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ export const createFhevmInstance = async (account: string) => {
const network = await provider.getNetwork();
const chainId = +network.chainId.toString();
const publicKey = await provider.call({
from: null,
to: '0x0000000000000000000000000000000000000044',
to: '0x000000000000000000000000000000000000005d',
data: '0xd9d47bb001',
});

const strKP = getStorage(account);
const keypairs: ExportedContractKeypairs | undefined = strKP ? JSON.parse(strKP) : undefined;
instances[account] = await createInstance({ chainId, publicKey, keypairs });
console.log(publicKey);
};

const getStorageKey = (account: string) => {
Expand Down

0 comments on commit 0926283

Please sign in to comment.