Skip to content

Commit

Permalink
Merge pull request #133 from zama-ai/fix/pad0.5.x
Browse files Browse the repository at this point in the history
Add padStart for 0.5.x
  • Loading branch information
immortal-tofu authored Nov 14, 2024
2 parents d26053f + f73591d commit 4142451
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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.5.7",
"version": "0.5.8",
"description": "fhEVM SDK for blockchain using TFHE",
"main": "lib/node.js",
"types": "lib/node/node.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/sdk/reencrypt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const reencryptRequest =
signature: signature.replace(/^(0x)/, ''),
user_address: userAddress.replace(/^(0x)/, ''),
enc_key: publicKey.replace(/^(0x)/, ''),
ciphertext_handle: handle.toString(16),
ciphertext_handle: handle.toString(16).padStart(64, '0'),
eip712_verifying_contract: contractAddress,
};
const options = {
Expand Down

0 comments on commit 4142451

Please sign in to comment.