From 0e8810d2e6b75a3e6e99cab8fa7e11f70edef468 Mon Sep 17 00:00:00 2001 From: q1keonchain Date: Thu, 25 May 2023 11:42:48 +0100 Subject: [PATCH] remove ip155 references --- packages/web-app/hooks/usePermit2.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/web-app/hooks/usePermit2.tsx b/packages/web-app/hooks/usePermit2.tsx index c7759c9a..19f6b589 100644 --- a/packages/web-app/hooks/usePermit2.tsx +++ b/packages/web-app/hooks/usePermit2.tsx @@ -118,13 +118,13 @@ export const usePermit2TransferSignature = ({ signTypedData: signPermit, } = useSignTypedData(signTypedDataConfig); - let eip155signature = signature; + let signatureFix = signature; if (signSuccess && signature) { - eip155signature = fixVInSignature(signature); + signatureFix = fixVInSignature(signature); } - return { permit, signature: eip155signature, signPermit, signSuccess, signError }; + return { permit, signature: signatureFix, signPermit, signSuccess, signError }; }; export const usePermit2BatchTransferSignature = ({ @@ -179,13 +179,13 @@ export const usePermit2BatchTransferSignature = ({ signTypedData: signPermit, } = useSignTypedData(signTypedDataConfig); - let eip155signature = signature; + let signatureFix = signature; if (signSuccess && signature) { - eip155signature = fixVInSignature(signature); + signatureFix = fixVInSignature(signature); } - return { permit, signature: eip155signature, signPermit, signSuccess, signError, signReady }; + return { permit, signature: signatureFix, signPermit, signSuccess, signError, signReady }; }; export const useAvailableNonce = (address: string) => {