From 677ca5735ee02ca43827b8a0ddcd3042c2017124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20=27birdy=27=20Danjou?= Date: Thu, 27 Jun 2024 21:34:42 +0200 Subject: [PATCH] fix: fix conversion of bigint --- src/sdk/reencrypt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdk/reencrypt.ts b/src/sdk/reencrypt.ts index a8c94fe..cd4656b 100644 --- a/src/sdk/reencrypt.ts +++ b/src/sdk/reencrypt.ts @@ -27,7 +27,7 @@ export const reencryptRequest = signature: signature.replace(/^(0x)/, ''), user_address: userAddress.replace(/^(0x)/, ''), enc_key: publicKey.replace(/^(0x)/, ''), - ciphertext_handle: toHexString(bigIntToBytes(handle)), + ciphertext_handle: handle.toString(16), eip712_verifying_contract: contractAddress, }; const options = {