Skip to content

Commit

Permalink
Merge pull request #147 from zama-ai/fix/checksum
Browse files Browse the repository at this point in the history
Fix/checksum
  • Loading branch information
immortal-tofu authored Dec 5, 2024
2 parents f515707 + e64e0ad commit 67ecdfd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fhevmjs",
"version": "0.6.0-19",
"version": "0.6.0",
"description": "fhEVM SDK for blockchain using TFHE",
"main": "lib/node.js",
"types": "lib/node/node.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions src/sdk/encrypt.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isAddress } from 'ethers';
import { getAddress, isAddress } from 'ethers';
import createKeccakHash from 'keccak';
import {
TfheCompactPublicKey,
Expand Down Expand Up @@ -272,8 +272,8 @@ export const createEncryptedInput =
const closestPP = this._getClosestPP();
const ppId = publicParams[closestPP]!.publicParamsId;
const payload = {
contract_address: contractAddress,
caller_address: callerAddress,
contract_address: getAddress(contractAddress),
caller_address: getAddress(callerAddress),
ct_proof: ciphertext.toString('hex'),
key_id: publicKeyId,
crs_id: ppId,
Expand Down

0 comments on commit 67ecdfd

Please sign in to comment.