Skip to content

Commit

Permalink
remove ip155 references
Browse files Browse the repository at this point in the history
  • Loading branch information
q1keonchain committed May 25, 2023
1 parent 27c396f commit 0e8810d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/web-app/hooks/usePermit2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ({
Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit 0e8810d

Please sign in to comment.